summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ct/ct_x509v3.c
diff options
context:
space:
mode:
authorbeck <>2021-11-20 01:10:49 +0000
committerbeck <>2021-11-20 01:10:49 +0000
commit945f084e2204432f02dc67409d640c082c7d12b1 (patch)
tree09562d0baf42f60ea370c64468465708195ec887 /src/lib/libcrypto/ct/ct_x509v3.c
parent3d755921799d0394eade3c0043ddc31a5a71be7c (diff)
downloadopenbsd-945f084e2204432f02dc67409d640c082c7d12b1.tar.gz
openbsd-945f084e2204432f02dc67409d640c082c7d12b1.tar.bz2
openbsd-945f084e2204432f02dc67409d640c082c7d12b1.zip
Make these files compile - not hooked up to build yet.
ok jsing@ tb@
Diffstat (limited to 'src/lib/libcrypto/ct/ct_x509v3.c')
-rw-r--r--src/lib/libcrypto/ct/ct_x509v3.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/libcrypto/ct/ct_x509v3.c b/src/lib/libcrypto/ct/ct_x509v3.c
index 32312e2c6b..169d6c3b5c 100644
--- a/src/lib/libcrypto/ct/ct_x509v3.c
+++ b/src/lib/libcrypto/ct/ct_x509v3.c
@@ -11,12 +11,14 @@
11# error "CT is disabled" 11# error "CT is disabled"
12#endif 12#endif
13 13
14#include <string.h>
15
14#include "ct_local.h" 16#include "ct_local.h"
15 17
16static char * 18static char *
17i2s_poison(const X509V3_EXT_METHOD *method, void *val) 19i2s_poison(const X509V3_EXT_METHOD *method, void *val)
18{ 20{
19 return OPENSSL_strdup("NULL"); 21 return strdup("NULL");
20} 22}
21 23
22static void * 24static void *
@@ -63,8 +65,8 @@ x509_ext_d2i_SCT_LIST(STACK_OF(SCT) **a, const unsigned char **pp, long len)
63 return s; 65 return s;
64} 66}
65 67
66static STACK_OF(SCT) *o 68static STACK_OF(SCT) *
67csp_ext_d2i_SCT_LIST(STACK_OF(SCT) **a, const unsigned char **pp, long len) 69ocsp_ext_d2i_SCT_LIST(STACK_OF(SCT) **a, const unsigned char **pp, long len)
68{ 70{
69 STACK_OF(SCT) *s = d2i_SCT_LIST(a, pp, len); 71 STACK_OF(SCT) *s = d2i_SCT_LIST(a, pp, len);
70 72
@@ -88,7 +90,7 @@ const X509V3_EXT_METHOD v3_ct_scts[3] = {
88 NULL }, 90 NULL },
89 91
90 /* X509v3 extension to mark a certificate as a pre-certificate */ 92 /* X509v3 extension to mark a certificate as a pre-certificate */
91 { NID_ct_precert_poison, 0, ASN1_ITEM_ref(ASN1_NULL), 93 { NID_ct_precert_poison, 0, &ASN1_NULL_it,
92 NULL, NULL, NULL, NULL, 94 NULL, NULL, NULL, NULL,
93 i2s_poison, s2i_poison, 95 i2s_poison, s2i_poison,
94 NULL, NULL, 96 NULL, NULL,