-/* $OpenBSD: x509_conf.c,v 1.20 2024/08/28 08:43:55 tb Exp $ */
+/* $OpenBSD: x509_conf.c,v 1.21 2024/08/28 08:50:41 tb Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 1999.
*/
static unsigned char *generic_asn1(const char *value, X509V3_CTX *ctx,
long *ext_len);
-/* CONF *conf: Config file */
-/* char *name: Name */
-/* char *value: Value */
X509_EXTENSION *
X509V3_EXT_nconf(CONF *conf, X509V3_CTX *ctx, const char *name,
const char *value)
}
LCRYPTO_ALIAS(X509V3_EXT_nconf);
-/* CONF *conf: Config file */
-/* char *value: Value */
X509_EXTENSION *
-X509V3_EXT_nconf_nid(CONF *conf, X509V3_CTX *ctx, int nid,
- const char *value)
+X509V3_EXT_nconf_nid(CONF *conf, X509V3_CTX *ctx, int nid, const char *value)
{
int crit;
int ext_type;
}
LCRYPTO_ALIAS(X509V3_EXT_nconf_nid);
-/* CONF *conf: Config file */
-/* char *value: Value */
static X509_EXTENSION *
-do_ext_nconf(CONF *conf, X509V3_CTX *ctx, int nid, int crit,
- const char *value)
+do_ext_nconf(CONF *conf, X509V3_CTX *ctx, int nid, int crit, const char *value)
{
const X509V3_EXT_METHOD *method;
X509_EXTENSION *ext;
}
/* Given an internal structure, nid and critical flag create an extension */
-
X509_EXTENSION *
X509V3_EXT_i2d(int nid, int crit, void *ext_struct)
{
return ext_der;
}
-/* This is the main function: add a bunch of extensions based on a config file
+/*
+ * This is the main function: add a bunch of extensions based on a config file
* section to an extension STACK.
*/
}
LCRYPTO_ALIAS(X509V3_EXT_add_nconf_sk);
-/* Convenience functions to add extensions to a certificate, CRL and request */
-
int
X509V3_EXT_add_nconf(CONF *conf, X509V3_CTX *ctx, const char *section,
X509 *cert)
}
LCRYPTO_ALIAS(X509V3_EXT_add_nconf);
-/* Same as above but for a CRL */
-
int
X509V3_EXT_CRL_add_nconf(CONF *conf, X509V3_CTX *ctx, const char *section,
X509_CRL *crl)
}
LCRYPTO_ALIAS(X509V3_EXT_CRL_add_nconf);
-/* Add extensions to certificate request */
-
int
X509V3_EXT_REQ_add_nconf(CONF *conf, X509V3_CTX *ctx, const char *section,
X509_REQ *req)
}
LCRYPTO_ALIAS(X509V3_EXT_REQ_add_nconf);
-/* Config database functions */
-
char *
X509V3_get_string(X509V3_CTX *ctx, const char *name, const char *section)
{
}
LCRYPTO_ALIAS(X509V3_set_ctx);
-/* Old conf compatibility functions */
-
X509_EXTENSION *
X509V3_EXT_conf(LHASH_OF(CONF_VALUE) *conf, X509V3_CTX *ctx, const char *name,
const char *value)
}
LCRYPTO_ALIAS(X509V3_EXT_conf);
-/* LHASH *conf: Config file */
-/* char *value: Value */
X509_EXTENSION *
X509V3_EXT_conf_nid(LHASH_OF(CONF_VALUE) *conf, X509V3_CTX *ctx, int nid,
const char *value)
}
LCRYPTO_ALIAS(X509V3_EXT_conf_nid);
+/*
+ * XXX -remove everything below in the next bump.
+ */
+
void
X509V3_set_conf_lhash(X509V3_CTX *ctx, LHASH_OF(CONF_VALUE) *lhash)
{