X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=doc%2Fman3%2FX509_get0_sm2_id.pod;h=d8a85d7f8b806ced316bcd4a2d16d7132233ee3b;hp=84da71e831adca59b49ac0d46ca3eb4d4107fa6f;hb=bc42bd6298702a1abf70aa6383d36886dd5af4b3;hpb=7eba43e837eb3669d6b32d4ba27c3e93db29b8c3 diff --git a/doc/man3/X509_get0_sm2_id.pod b/doc/man3/X509_get0_sm2_id.pod index 84da71e831..d8a85d7f8b 100644 --- a/doc/man3/X509_get0_sm2_id.pod +++ b/doc/man3/X509_get0_sm2_id.pod @@ -2,20 +2,32 @@ =head1 NAME -X509_get0_sm2_id, X509_set_sm2_id - get or set SM2 ID for certificate operations +X509_get0_sm2_id, X509_set0_sm2_id, +X509_REQ_get0_sm2_id, X509_REQ_set0_sm2_id +- get or set SM2 ID for certificate operations =head1 SYNOPSIS #include ASN1_OCTET_STRING *X509_get0_sm2_id(X509 *x); - void X509_set_sm2_id(X509 *x, ASN1_OCTET_STRING *sm2_id); + void X509_set0_sm2_id(X509 *x, ASN1_OCTET_STRING *sm2_id); + ASN1_OCTET_STRING *X509_REQ_get0_sm2_id(X509_REQ *x); + void X509_REQ_set0_sm2_id(X509_REQ *x, ASN1_OCTET_STRING *sm2_id); =head1 DESCRIPTION X509_get0_sm2_id() gets the ID value of an SM2 certificate B by returning an B object which should not be freed by the caller. -X509_set_sm2_id() sets the B value to an SM2 certificate B. + +X509_set0_sm2_id() sets the B value to an SM2 certificate B. Calling +this function transfers the memory management of the value to the X509 object, +and therefore the value that has been passed in should not be freed by the +caller after this function has been called. + +X509_REQ_get0_sm2_id() and X509_REQ_set0_sm2_id() have the same functionality +as X509_get0_sm2_id() and X509_set0_sm2_id() except that they deal with +B objects instead of B. =head1 NOTES @@ -25,7 +37,7 @@ ability to set and retrieve the SM2 ID value. =head1 RETURN VALUES -X509_set_sm2_id() does not return a value. +X509_set0_sm2_id() and X509_REQ_set0_sm2_id() do not return a value. =head1 SEE ALSO