summaryrefslogtreecommitdiff
path: root/lib/libcrypto/man/RSA_meth_new.3
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2018-09-12 06:35:39 +0000
committerDamien Miller <djm@cvs.openbsd.org>2018-09-12 06:35:39 +0000
commit1cca8e46568e5fad260f66a788deb2a68fd813c4 (patch)
tree7d8983a274ccebe896bab8cb4706e0ea00246d14 /lib/libcrypto/man/RSA_meth_new.3
parent11996dcfc71da6ac4090fdedb23783170eec03de (diff)
Add some accessor functions:
RSA_meth_get_finish() RSA_meth_set1_name() EVP_CIPHER_CTX_(get|set)_iv() feedback and ok jsing@ tb@
Diffstat (limited to 'lib/libcrypto/man/RSA_meth_new.3')
-rw-r--r--lib/libcrypto/man/RSA_meth_new.344
1 files changed, 34 insertions, 10 deletions
diff --git a/lib/libcrypto/man/RSA_meth_new.3 b/lib/libcrypto/man/RSA_meth_new.3
index ae3ca88adb4..6eabcc5bf8d 100644
--- a/lib/libcrypto/man/RSA_meth_new.3
+++ b/lib/libcrypto/man/RSA_meth_new.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: RSA_meth_new.3,v 1.1 2018/03/18 13:06:36 schwarze Exp $
+.\" $OpenBSD: RSA_meth_new.3,v 1.2 2018/09/12 06:35:38 djm Exp $
.\" selective merge up to: OpenSSL a970b14f Jul 31 18:58:40 2017 -0400
.\"
.\" This file is a derived work.
@@ -65,13 +65,15 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
.\" OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: March 18 2018 $
+.Dd $Mdocdate: September 12 2018 $
.Dt RSA_METH_NEW 3
.Os
.Sh NAME
.Nm RSA_meth_new ,
-.Nm RSA_meth_free ,
.Nm RSA_meth_dup ,
+.Nm RSA_meth_free ,
+.Nm RSA_meth_get_finish ,
+.Nm RSA_meth_set1_name ,
.Nm RSA_meth_set_finish ,
.Nm RSA_meth_set_priv_enc ,
.Nm RSA_meth_set_priv_dec
@@ -83,15 +85,22 @@
.Fa "const char *name"
.Fa "int flags"
.Fc
+.Ft RSA_METHOD *
+.Fo RSA_meth_dup
+.Fa "const RSA_METHOD *meth"
+.Fc
.Ft void
.Fo RSA_meth_free
.Fa "RSA_METHOD *meth"
.Fc
-.Ft RSA_METHOD *
-.Fo RSA_meth_dup
-.Fa "const RSA_METHOD *meth"
+.Ft int
+.Fo RSA_meth_set1_name
+.Fa "RSA_METHOD *meth"
+.Fa "const char *name"
.Fc
.Ft int
+.Fn "(*RSA_meth_get_finish(const RSA_METHOD *meth))" "RSA *rsa"
+.Ft int
.Fo RSA_meth_set_finish
.Fa "RSA_METHOD *meth"
.Fa "int (*finish)(RSA *rsa)"
@@ -142,8 +151,18 @@ destroys
.Fa meth
and frees any memory associated with it.
.Pp
+.Fn RSA_meth_set1_name
+Stores a copy of the NUL-terminated
+.Fa name
+in the
+.Vt RSA_METHOD
+object after freeing the previously stored
+.Fa name.
+.Pp
+.Fn RSA_meth_get_finish
+and
.Fn RSA_meth_set_finish
-sets an optional function for destroying an
+get and set an optional function for destroying an
.Vt RSA
object.
Unless
@@ -180,7 +199,7 @@ object or
on failure.
.Pp
All
-.Fn RSA_meth_set_*
+.Fn RSA_meth_set*
functions return 1 on success or 0 on failure.
.Sh SEE ALSO
.Xr RSA_new 3 ,
@@ -188,6 +207,11 @@ functions return 1 on success or 0 on failure.
.Xr RSA_private_encrypt 3 ,
.Xr RSA_set_method 3
.Sh HISTORY
-These functions first appeared in OpenSSL 1.1.0
-and have been available since
+These functions first appeared in OpenSSL 1.1.0.
+.Fn RSA_meth_get_finish
+and
+.Fn RSA_meth_set1_name
+have been available since
+.Ox 6.4 ,
+all the other functions since
.Ox 6.3 .