diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2016-08-18 15:16:31 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2016-08-19 12:47:31 +0100 |
commit | 68c12bfc6601d40e85146f36f26fe8ff0472f36b (patch) | |
tree | 4070d574355a2f9b25befbd55bc639aa96e0ab0f /include | |
parent | 11222483d75c1e18fb53fe71b9a86fcfdb6d0725 (diff) |
Add X509_get0_serialNumber() and constify OCSP_cert_to_id()
Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/openssl/ocsp.h | 9 | ||||
-rw-r--r-- | include/openssl/x509.h | 1 |
2 files changed, 6 insertions, 4 deletions
diff --git a/include/openssl/ocsp.h b/include/openssl/ocsp.h index a1e4e88201..44f7195f41 100644 --- a/include/openssl/ocsp.h +++ b/include/openssl/ocsp.h @@ -182,12 +182,13 @@ int OCSP_REQ_CTX_set1_req(OCSP_REQ_CTX *rctx, OCSP_REQUEST *req); int OCSP_REQ_CTX_add1_header(OCSP_REQ_CTX *rctx, const char *name, const char *value); -OCSP_CERTID *OCSP_cert_to_id(const EVP_MD *dgst, X509 *subject, X509 *issuer); +OCSP_CERTID *OCSP_cert_to_id(const EVP_MD *dgst, const X509 *subject, + const X509 *issuer); OCSP_CERTID *OCSP_cert_id_new(const EVP_MD *dgst, - X509_NAME *issuerName, - ASN1_BIT_STRING *issuerKey, - ASN1_INTEGER *serialNumber); + const X509_NAME *issuerName, + const ASN1_BIT_STRING *issuerKey, + const ASN1_INTEGER *serialNumber); OCSP_ONEREQ *OCSP_request_add0_id(OCSP_REQUEST *req, OCSP_CERTID *cid); diff --git a/include/openssl/x509.h b/include/openssl/x509.h index 78227128a2..fe7fd78787 100644 --- a/include/openssl/x509.h +++ b/include/openssl/x509.h @@ -617,6 +617,7 @@ long X509_get_version(const X509 *x); int X509_set_version(X509 *x, long version); int X509_set_serialNumber(X509 *x, ASN1_INTEGER *serial); ASN1_INTEGER *X509_get_serialNumber(X509 *x); +const ASN1_INTEGER *X509_get0_serialNumber(const X509 *x); int X509_set_issuer_name(X509 *x, X509_NAME *name); X509_NAME *X509_get_issuer_name(const X509 *a); int X509_set_subject_name(X509 *x, X509_NAME *name); |