113d40330Schristos=pod 213d40330Schristos 313d40330Schristos=head1 NAME 413d40330Schristos 513d40330SchristosRSA_new, RSA_free - allocate and free RSA objects 613d40330Schristos 713d40330Schristos=head1 SYNOPSIS 813d40330Schristos 913d40330Schristos #include <openssl/rsa.h> 1013d40330Schristos 11*b0d17251SchristosThe following functions have been deprecated since OpenSSL 3.0, and can be 12*b0d17251Schristoshidden entirely by defining B<OPENSSL_API_COMPAT> with a suitable version value, 13*b0d17251Schristossee L<openssl_user_macros(7)>: 14*b0d17251Schristos 1513d40330Schristos RSA *RSA_new(void); 1613d40330Schristos 1713d40330Schristos void RSA_free(RSA *rsa); 1813d40330Schristos 1913d40330Schristos=head1 DESCRIPTION 2013d40330Schristos 2113d40330SchristosRSA_new() allocates and initializes an B<RSA> structure. It is equivalent to 2213d40330Schristoscalling RSA_new_method(NULL). 2313d40330Schristos 2413d40330SchristosRSA_free() frees the B<RSA> structure and its components. The key is 2513d40330Schristoserased before the memory is returned to the system. 2613d40330SchristosIf B<rsa> is NULL nothing is done. 2713d40330Schristos 2813d40330Schristos=head1 RETURN VALUES 2913d40330Schristos 3013d40330SchristosIf the allocation fails, RSA_new() returns B<NULL> and sets an error 3113d40330Schristoscode that can be obtained by L<ERR_get_error(3)>. Otherwise it returns 3213d40330Schristosa pointer to the newly allocated structure. 3313d40330Schristos 3413d40330SchristosRSA_free() returns no value. 3513d40330Schristos 3613d40330Schristos=head1 SEE ALSO 3713d40330Schristos 3813d40330SchristosL<ERR_get_error(3)>, 3913d40330SchristosL<RSA_generate_key(3)>, 4013d40330SchristosL<RSA_new_method(3)> 4113d40330Schristos 42*b0d17251Schristos=head1 HISTORY 43*b0d17251Schristos 44*b0d17251SchristosAll functions described here were deprecated in OpenSSL 3.0. 45*b0d17251SchristosFor replacement see EVP_PKEY-RSA(7). 46*b0d17251Schristos 4713d40330Schristos=head1 COPYRIGHT 4813d40330Schristos 49*b0d17251SchristosCopyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved. 5013d40330Schristos 51*b0d17251SchristosLicensed under the Apache License 2.0 (the "License"). You may not use 5213d40330Schristosthis file except in compliance with the License. You can obtain a copy 5313d40330Schristosin the file LICENSE in the source distribution or at 5413d40330SchristosL<https://www.openssl.org/source/license.html>. 5513d40330Schristos 5613d40330Schristos=cut 57