summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509_utl.c
diff options
context:
space:
mode:
authortb <>2024-08-31 10:03:03 +0000
committertb <>2024-08-31 10:03:03 +0000
commitd4f7c9504448480d32c75f0a1361436d34de97dc (patch)
tree48fd0ca4b4fcbb6d37b8cd4ce025c65e8f71ffde /src/lib/libcrypto/x509/x509_utl.c
parentd58c480554b7e690b2dab126d2f8f622324e3a42 (diff)
downloadopenbsd-d4f7c9504448480d32c75f0a1361436d34de97dc.tar.gz
openbsd-d4f7c9504448480d32c75f0a1361436d34de97dc.tar.bz2
openbsd-d4f7c9504448480d32c75f0a1361436d34de97dc.zip
Make some more x509 conf stuff internal
This internalizes a particularly scary layer of conf used for X.509 extensions. Again unused public API... ok beck jsing
Diffstat (limited to 'src/lib/libcrypto/x509/x509_utl.c')
-rw-r--r--src/lib/libcrypto/x509/x509_utl.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/src/lib/libcrypto/x509/x509_utl.c b/src/lib/libcrypto/x509/x509_utl.c
index e0e5a67386..6f5add482f 100644
--- a/src/lib/libcrypto/x509/x509_utl.c
+++ b/src/lib/libcrypto/x509/x509_utl.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509_utl.c,v 1.20 2024/08/31 09:26:18 tb Exp $ */ 1/* $OpenBSD: x509_utl.c,v 1.21 2024/08/31 10:03:03 tb Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project. 3 * project.
4 */ 4 */
@@ -122,7 +122,6 @@ X509V3_add_value(const char *name, const char *value,
122 } 122 }
123 return 0; 123 return 0;
124} 124}
125LCRYPTO_ALIAS(X509V3_add_value);
126 125
127int 126int
128X509V3_add_value_uchar(const char *name, const unsigned char *value, 127X509V3_add_value_uchar(const char *name, const unsigned char *value,
@@ -130,7 +129,6 @@ X509V3_add_value_uchar(const char *name, const unsigned char *value,
130{ 129{
131 return X509V3_add_value(name, (const char *)value, extlist); 130 return X509V3_add_value(name, (const char *)value, extlist);
132} 131}
133LCRYPTO_ALIAS(X509V3_add_value_uchar);
134 132
135/* Free function for STACK_OF(CONF_VALUE) */ 133/* Free function for STACK_OF(CONF_VALUE) */
136 134
@@ -154,17 +152,6 @@ X509V3_add_value_bool(const char *name, int asn1_bool,
154 return X509V3_add_value(name, "TRUE", extlist); 152 return X509V3_add_value(name, "TRUE", extlist);
155 return X509V3_add_value(name, "FALSE", extlist); 153 return X509V3_add_value(name, "FALSE", extlist);
156} 154}
157LCRYPTO_ALIAS(X509V3_add_value_bool);
158
159int
160X509V3_add_value_bool_nf(const char *name, int asn1_bool,
161 STACK_OF(CONF_VALUE) **extlist)
162{
163 if (asn1_bool)
164 return X509V3_add_value(name, "TRUE", extlist);
165 return 1;
166}
167LCRYPTO_ALIAS(X509V3_add_value_bool_nf);
168 155
169static char * 156static char *
170bn_to_string(const BIGNUM *bn) 157bn_to_string(const BIGNUM *bn)
@@ -307,7 +294,6 @@ X509V3_add_value_int(const char *name, const ASN1_INTEGER *aint,
307 free(strtmp); 294 free(strtmp);
308 return ret; 295 return ret;
309} 296}
310LCRYPTO_ALIAS(X509V3_add_value_int);
311 297
312int 298int
313X509V3_get_value_bool(const CONF_VALUE *value, int *asn1_bool) 299X509V3_get_value_bool(const CONF_VALUE *value, int *asn1_bool)
@@ -333,7 +319,6 @@ X509V3_get_value_bool(const CONF_VALUE *value, int *asn1_bool)
333 X509V3_conf_err(value); 319 X509V3_conf_err(value);
334 return 0; 320 return 0;
335} 321}
336LCRYPTO_ALIAS(X509V3_get_value_bool);
337 322
338int 323int
339X509V3_get_value_int(const CONF_VALUE *value, ASN1_INTEGER **aint) 324X509V3_get_value_int(const CONF_VALUE *value, ASN1_INTEGER **aint)
@@ -347,7 +332,6 @@ X509V3_get_value_int(const CONF_VALUE *value, ASN1_INTEGER **aint)
347 *aint = itmp; 332 *aint = itmp;
348 return 1; 333 return 1;
349} 334}
350LCRYPTO_ALIAS(X509V3_get_value_int);
351 335
352#define HDR_NAME 1 336#define HDR_NAME 1
353#define HDR_VALUE 2 337#define HDR_VALUE 2