diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2016-08-20 13:02:09 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2016-08-21 18:25:23 +0100 |
commit | 0b7347effee58f5a19e4724c4b277635727c20d8 (patch) | |
tree | 42e1e32ddf704a4c196fccefa13e45db007bb975 /doc/crypto | |
parent | bf932fbd4a2385496fa5e9363bf9280fc6fba0ad (diff) |
Add X509_getm_notBefore, X509_getm_notAfter
Add mutable versions of X509_get0_notBefore and X509_get0_notAfter.
Rename X509_SIG_get0_mutable to X509_SIG_getm.
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Diffstat (limited to 'doc/crypto')
-rw-r--r-- | doc/crypto/X509_SIG_get0.pod | 8 | ||||
-rw-r--r-- | doc/crypto/X509_get_notBefore.pod | 17 |
2 files changed, 13 insertions, 12 deletions
diff --git a/doc/crypto/X509_SIG_get0.pod b/doc/crypto/X509_SIG_get0.pod index a47ae448cc..d24eadcdf9 100644 --- a/doc/crypto/X509_SIG_get0.pod +++ b/doc/crypto/X509_SIG_get0.pod @@ -2,7 +2,7 @@ =head1 NAME -X509_SIG_get0, X509_SIG_get0_mutable - DigestInfo functions +X509_SIG_get0, X509_SIG_getm - DigestInfo functions =head1 SYNOPSIS @@ -10,13 +10,13 @@ X509_SIG_get0, X509_SIG_get0_mutable - DigestInfo functions void X509_SIG_get0(const X509_SIG *sig, const X509_ALGOR **palg, const ASN1_OCTET_STRING **pdigest); - void X509_SIG_get0_mutable(X509_SIG *sig, X509_ALGOR **palg, - ASN1_OCTET_STRING **pdigest, + void X509_SIG_getm(X509_SIG *sig, X509_ALGOR **palg, + ASN1_OCTET_STRING **pdigest, =head1 DESCRIPTION X509_SIG_get0() returns pointers to the algorithm identifier and digest -value in B<sig>. X509_SIG_get0_mutable() is identical to X509_SIG_get0() +value in B<sig>. X509_SIG_getm() is identical to X509_SIG_get0() except the pointers returned are not constant and can be modified: for example to initialise them. diff --git a/doc/crypto/X509_get_notBefore.pod b/doc/crypto/X509_get_notBefore.pod index 5fdc83404f..82502f6588 100644 --- a/doc/crypto/X509_get_notBefore.pod +++ b/doc/crypto/X509_get_notBefore.pod @@ -2,9 +2,9 @@ =head1 NAME -X509_get0_notBefore, X509_get_notBefore, X509_get0_notAfter, X509_get_notAfter, -X509_set1_notBefore, X509_set1_notAfter, X509_CRL_get0_lastUpdate, -X509_CRL_get0_nextUpdate, X509_CRL_set1_lastUpdate, +X509_get0_notBefore, X509_getm_notBefore, X509_get0_notAfter, +X509_getm_notAfter, X509_set1_notBefore, X509_set1_notAfter, +X509_CRL_get0_lastUpdate, X509_CRL_get0_nextUpdate, X509_CRL_set1_lastUpdate, X509_CRL_set1_nextUpdate - get or set certificate or CRL dates =head1 SYNOPSIS @@ -14,8 +14,8 @@ X509_CRL_set1_nextUpdate - get or set certificate or CRL dates const ASN1_TIME *X509_get0_notBefore(const X509 *x); const ASN1_TIME *X509_get0_notAfter(const X509 *x); - ASN1_TIME *X509_get_notBefore(const X509 *x); - ASN1_TIME *X509_get_notAfter(const X509 *x); + ASN1_TIME *X509_getm_notBefore(const X509 *x); + ASN1_TIME *X509_getm_notAfter(const X509 *x); int X509_set1_notBefore(X509 *x, const ASN1_TIME *tm); int X509_set1_notAfter(X509 *x, const ASN1_TIME *tm); @@ -33,9 +33,10 @@ and B<notAfter> fields of certificate B<x> respectively. The value returned is an internal pointer which must not be freed up after the call. -X509_get_notBefore() and X509_get_notAfter() are similar to -X509_get0_notBefore() and X509_get0_notAfter() except they do not -return constant values. They are deprecated in OpenSSL 1.1.0 +X509_getm_notBefore() and X509_getm_notAfter() are similar to +X509_get0_notBefore() and X509_get0_notAfter() except they return +non-constant mutable references to the associated date field of +the certficate. X509_set1_notBefore() and X509_set1_notAfter() set the B<notBefore> and B<notAfter> fields of B<x> to B<tm>. Ownership of the passed |