summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjsing <>2018-03-17 14:44:34 +0000
committerjsing <>2018-03-17 14:44:34 +0000
commit3336e4a90f6da91d1f671bf921ad0384535d15c8 (patch)
tree7f27b7fd9a159fde0e65289be2886bff46655a7d
parente1a22b8c62b92cd313093f7abfeac785adc963e5 (diff)
downloadopenbsd-3336e4a90f6da91d1f671bf921ad0384535d15c8.tar.gz
openbsd-3336e4a90f6da91d1f671bf921ad0384535d15c8.tar.bz2
openbsd-3336e4a90f6da91d1f671bf921ad0384535d15c8.zip
Provide OCSP_SINGLERESP_get0_id().
-rw-r--r--src/lib/libcrypto/Symbols.list1
-rw-r--r--src/lib/libcrypto/ocsp/ocsp.h3
-rw-r--r--src/lib/libcrypto/ocsp/ocsp_cl.c8
3 files changed, 10 insertions, 2 deletions
diff --git a/src/lib/libcrypto/Symbols.list b/src/lib/libcrypto/Symbols.list
index eb4d1265fb..1b330c7dbf 100644
--- a/src/lib/libcrypto/Symbols.list
+++ b/src/lib/libcrypto/Symbols.list
@@ -1830,6 +1830,7 @@ OCSP_SINGLERESP_add1_ext_i2d
1830OCSP_SINGLERESP_add_ext 1830OCSP_SINGLERESP_add_ext
1831OCSP_SINGLERESP_delete_ext 1831OCSP_SINGLERESP_delete_ext
1832OCSP_SINGLERESP_free 1832OCSP_SINGLERESP_free
1833OCSP_SINGLERESP_get0_id
1833OCSP_SINGLERESP_get1_ext_d2i 1834OCSP_SINGLERESP_get1_ext_d2i
1834OCSP_SINGLERESP_get_ext 1835OCSP_SINGLERESP_get_ext
1835OCSP_SINGLERESP_get_ext_by_NID 1836OCSP_SINGLERESP_get_ext_by_NID
diff --git a/src/lib/libcrypto/ocsp/ocsp.h b/src/lib/libcrypto/ocsp/ocsp.h
index e3fa6f5a3d..b2c4367f83 100644
--- a/src/lib/libcrypto/ocsp/ocsp.h
+++ b/src/lib/libcrypto/ocsp/ocsp.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ocsp.h,v 1.11 2016/12/30 16:19:04 jsing Exp $ */ 1/* $OpenBSD: ocsp.h,v 1.12 2018/03/17 14:44:34 jsing Exp $ */
2/* Written by Tom Titchener <Tom_Titchener@groove.net> for the OpenSSL 2/* Written by Tom Titchener <Tom_Titchener@groove.net> for the OpenSSL
3 * project. */ 3 * project. */
4 4
@@ -511,6 +511,7 @@ int OCSP_SINGLERESP_add1_ext_i2d(OCSP_SINGLERESP *x, int nid, void *value,
511 int crit, unsigned long flags); 511 int crit, unsigned long flags);
512int OCSP_SINGLERESP_add_ext(OCSP_SINGLERESP *x, X509_EXTENSION *ex, 512int OCSP_SINGLERESP_add_ext(OCSP_SINGLERESP *x, X509_EXTENSION *ex,
513 int loc); 513 int loc);
514const OCSP_CERTID *OCSP_SINGLERESP_get0_id(const OCSP_SINGLERESP *x);
514 515
515OCSP_SINGLERESP *OCSP_SINGLERESP_new(void); 516OCSP_SINGLERESP *OCSP_SINGLERESP_new(void);
516void OCSP_SINGLERESP_free(OCSP_SINGLERESP *a); 517void OCSP_SINGLERESP_free(OCSP_SINGLERESP *a);
diff --git a/src/lib/libcrypto/ocsp/ocsp_cl.c b/src/lib/libcrypto/ocsp/ocsp_cl.c
index 04ea6866a5..c2cd9da09a 100644
--- a/src/lib/libcrypto/ocsp/ocsp_cl.c
+++ b/src/lib/libcrypto/ocsp/ocsp_cl.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ocsp_cl.c,v 1.14 2017/01/29 17:49:23 beck Exp $ */ 1/* $OpenBSD: ocsp_cl.c,v 1.15 2018/03/17 14:44:34 jsing Exp $ */
2/* Written by Tom Titchener <Tom_Titchener@groove.net> for the OpenSSL 2/* Written by Tom Titchener <Tom_Titchener@groove.net> for the OpenSSL
3 * project. */ 3 * project. */
4 4
@@ -390,3 +390,9 @@ OCSP_check_validity(ASN1_GENERALIZEDTIME *thisupd,
390 390
391 return 1; 391 return 1;
392} 392}
393
394const OCSP_CERTID *
395OCSP_SINGLERESP_get0_id(const OCSP_SINGLERESP *single)
396{
397 return single->certId;
398}