diff options
author | schwarze <> | 2016-11-04 10:17:17 +0000 |
---|---|---|
committer | schwarze <> | 2016-11-04 10:17:17 +0000 |
commit | 195fe5e91c60bd205043b4bea113abdff1c67bcc (patch) | |
tree | 1d15fe02d83a7ffb422ebe78c34ee1117da63e59 /src/lib/libcrypto/man/RSA_new.3 | |
parent | 00872265b9546fcf2d5795aa3a120c35142d268b (diff) | |
download | openbsd-195fe5e91c60bd205043b4bea113abdff1c67bcc.tar.gz openbsd-195fe5e91c60bd205043b4bea113abdff1c67bcc.tar.bz2 openbsd-195fe5e91c60bd205043b4bea113abdff1c67bcc.zip |
convert RSA manuals from pod to mdoc
Diffstat (limited to 'src/lib/libcrypto/man/RSA_new.3')
-rw-r--r-- | src/lib/libcrypto/man/RSA_new.3 | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src/lib/libcrypto/man/RSA_new.3 b/src/lib/libcrypto/man/RSA_new.3 new file mode 100644 index 0000000000..b01c8cd089 --- /dev/null +++ b/src/lib/libcrypto/man/RSA_new.3 | |||
@@ -0,0 +1,46 @@ | |||
1 | .Dd $Mdocdate: November 4 2016 $ | ||
2 | .Dt RSA_NEW 3 | ||
3 | .Os | ||
4 | .Sh NAME | ||
5 | .Nm RSA_new , | ||
6 | .Nm RSA_free | ||
7 | .Nd allocate and free RSA objects | ||
8 | .Sh SYNOPSIS | ||
9 | .In openssl/rsa.h | ||
10 | .Ft RSA * | ||
11 | .Fn RSA_new void | ||
12 | .Ft void | ||
13 | .Fo RSA_free | ||
14 | .Fa "RSA *rsa" | ||
15 | .Fc | ||
16 | .Sh DESCRIPTION | ||
17 | .Fn RSA_new | ||
18 | allocates and initializes an | ||
19 | .Vt RSA | ||
20 | structure. | ||
21 | It is equivalent to calling | ||
22 | .Fn RSA_new_method NULL . | ||
23 | .Pp | ||
24 | .Fn RSA_free | ||
25 | frees the | ||
26 | .Vt RSA | ||
27 | structure and its components. | ||
28 | The key is erased before the memory is returned to the system. | ||
29 | .Sh RETURN VALUES | ||
30 | If the allocation fails, | ||
31 | .Fn RSA_new | ||
32 | returns | ||
33 | .Dv NULL | ||
34 | and sets an error code that can be obtained by | ||
35 | .Xr ERR_get_error 3 . | ||
36 | Otherwise it returns a pointer to the newly allocated structure. | ||
37 | .Sh SEE ALSO | ||
38 | .Xr ERR_get_error 3 , | ||
39 | .Xr rsa 3 , | ||
40 | .Xr RSA_generate_key 3 , | ||
41 | .Xr RSA_new_method 3 | ||
42 | .Sh HISTORY | ||
43 | .Fn RSA_new | ||
44 | and | ||
45 | .Fn RSA_free | ||
46 | are available in all versions of SSLeay and OpenSSL. | ||