Blame doc/man3/RSA_new.pod

Packit c4476c
=pod
Packit c4476c
Packit c4476c
=head1 NAME
Packit c4476c
Packit c4476c
RSA_new, RSA_free - allocate and free RSA objects
Packit c4476c
Packit c4476c
=head1 SYNOPSIS
Packit c4476c
Packit c4476c
 #include <openssl/rsa.h>
Packit c4476c
Packit c4476c
 RSA *RSA_new(void);
Packit c4476c
Packit c4476c
 void RSA_free(RSA *rsa);
Packit c4476c
Packit c4476c
=head1 DESCRIPTION
Packit c4476c
Packit c4476c
RSA_new() allocates and initializes an B<RSA> structure. It is equivalent to
Packit c4476c
calling RSA_new_method(NULL).
Packit c4476c
Packit c4476c
RSA_free() frees the B<RSA> structure and its components. The key is
Packit c4476c
erased before the memory is returned to the system.
Packit c4476c
If B<rsa> is NULL nothing is done.
Packit c4476c
Packit c4476c
=head1 RETURN VALUES
Packit c4476c
Packit c4476c
If the allocation fails, RSA_new() returns B<NULL> and sets an error
Packit c4476c
code that can be obtained by L<ERR_get_error(3)>. Otherwise it returns
Packit c4476c
a pointer to the newly allocated structure.
Packit c4476c
Packit c4476c
RSA_free() returns no value.
Packit c4476c
Packit c4476c
=head1 SEE ALSO
Packit c4476c
Packit c4476c
L<ERR_get_error(3)>,
Packit c4476c
L<RSA_generate_key(3)>,
Packit c4476c
L<RSA_new_method(3)>
Packit c4476c
Packit c4476c
=head1 COPYRIGHT
Packit c4476c
Packit c4476c
Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
Packit c4476c
Packit c4476c
Licensed under the OpenSSL license (the "License").  You may not use
Packit c4476c
this file except in compliance with the License.  You can obtain a copy
Packit c4476c
in the file LICENSE in the source distribution or at
Packit c4476c
L<https://www.openssl.org/source/license.html>.
Packit c4476c
Packit c4476c
=cut