diff options
author | Jordan Montgomery <montytyper@msn.com> | 2020-10-01 23:02:52 -0700 |
---|---|---|
committer | Dmitry Belyavskiy <beldmit@gmail.com> | 2020-10-08 13:26:44 +0300 |
commit | db554ae1104eb5d3279ca338f58a42be61155f2f (patch) | |
tree | ac98c8da596cc799963c473084050aeabc7ad160 /doc | |
parent | b19b983017f3865b1b3411a4e635a670d5798774 (diff) |
Expose PKCS7_get_octet_string and PKCS7_type_is_other
Add PKCS7_get_octet_string() and PKCS7_type_is_other() to the public interface.
Fixes #11139
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/13059)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/man3/PKCS7_get_octet_string.pod | 40 | ||||
-rw-r--r-- | doc/man3/PKCS7_type_is_other.pod | 42 |
2 files changed, 82 insertions, 0 deletions
diff --git a/doc/man3/PKCS7_get_octet_string.pod b/doc/man3/PKCS7_get_octet_string.pod new file mode 100644 index 0000000000..7e7c3e0f1f --- /dev/null +++ b/doc/man3/PKCS7_get_octet_string.pod @@ -0,0 +1,40 @@ +=pod + +=head1 NAME + +PKCS7_get_octet_string - return octet string from a PKCS#7 envelopedData structure + +=head1 SYNOPSIS + + #include <openssl/pkcs7.h> + + ASN1_OCTET_STRING *PKCS7_get_octet_string(PKCS7 *p7); + +=head1 DESCRIPTION + +PKCS7_get_octet_string() returns a pointer to an ASN1 octet string from a +PKCS#7 envelopedData structure or B<NULL> if the structure cannot be parsed. + +=head1 NOTES + +As the B<0> implies, PKCS7_get_octet_string() returns internal pointers which +should not be freed by the caller. + +=head1 RETURN VALUES + +PKCS7_get_octet_string() returns an ASN1_OCTET_STRING pointer. + +=head1 SEE ALSO + +L<PKCS7_type_is_data(3)> + +=head1 COPYRIGHT + +Copyright 2002-2020 The OpenSSL Project Authors. All Rights Reserved. + +Licensed under the Apache License 2.0 (the "License"). You may not use +this file except in compliance with the License. You can obtain a copy +in the file LICENSE in the source distribution or at +L<https://www.openssl.org/source/license.html>. + +=cut diff --git a/doc/man3/PKCS7_type_is_other.pod b/doc/man3/PKCS7_type_is_other.pod new file mode 100644 index 0000000000..9ce8d5a11e --- /dev/null +++ b/doc/man3/PKCS7_type_is_other.pod @@ -0,0 +1,42 @@ +=pod + +=head1 NAME + +PKCS7_type_is_other - determine content type of PKCS#7 envelopedData structure + +=head1 SYNOPSIS + + #include <openssl/pkcs7.h> + + int PKCS7_type_is_other(PKCS7 *p7); + +=head1 DESCRIPTION + +PKCS7_type_is_other() returns the whether the content type of a PKCS#7 envelopedData +structure is one of the following content types: + +NID_pkcs7_data +NID_pkcs7_signed +NID_pkcs7_enveloped +NID_pkcs7_signedAndEnveloped +NID_pkcs7_digest +NID_pkcs7_encrypted + +=head1 RETURN VALUES + +PKCS7_type_is_other() returns either 0 if the content type is matched or 1 otherwise. + +=head1 SEE ALSO + +L<PKCS7_type_is_data(3)>, L<PKCS7_get_octet_string(3)> + +=head1 COPYRIGHT + +Copyright 2002-2020 The OpenSSL Project Authors. All Rights Reserved. + +Licensed under the Apache License 2.0 (the "License"). You may not use +this file except in compliance with the License. You can obtain a copy +in the file LICENSE in the source distribution or at +L<https://www.openssl.org/source/license.html>. + +=cut |