diff options
| author | tb <> | 2024-06-18 09:35:09 +0000 |
|---|---|---|
| committer | tb <> | 2024-06-18 09:35:09 +0000 |
| commit | 9a14209f7db4774aac0f2bca8ead52c3a89304a6 (patch) | |
| tree | d2761c6645016c90a2358fbb04bf8f04cfb23c2b /src | |
| parent | 1b7803704ab52275332055e4223af5c3e016f80d (diff) | |
| download | openbsd-9a14209f7db4774aac0f2bca8ead52c3a89304a6.tar.gz openbsd-9a14209f7db4774aac0f2bca8ead52c3a89304a6.tar.bz2 openbsd-9a14209f7db4774aac0f2bca8ead52c3a89304a6.zip | |
Rename 'ext' to 'name' in v3_generic_extension()
In this code 'ext' is usually used for an X509_EXTENSION object.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/x509/x509_conf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/x509/x509_conf.c b/src/lib/libcrypto/x509/x509_conf.c index 9f6b392b3c..3b87035d3a 100644 --- a/src/lib/libcrypto/x509/x509_conf.c +++ b/src/lib/libcrypto/x509/x509_conf.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x509_conf.c,v 1.14 2024/06/18 05:56:37 tb Exp $ */ | 1 | /* $OpenBSD: x509_conf.c,v 1.15 2024/06/18 09:35:09 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 1999. | 3 | * project 1999. |
| 4 | */ | 4 | */ |
| @@ -284,7 +284,7 @@ v3_check_generic(const char **value) | |||
| 284 | 284 | ||
| 285 | /* Create a generic extension: for now just handle DER type */ | 285 | /* Create a generic extension: for now just handle DER type */ |
| 286 | static X509_EXTENSION * | 286 | static X509_EXTENSION * |
| 287 | v3_generic_extension(const char *ext, const char *value, int crit, int gen_type, | 287 | v3_generic_extension(const char *name, const char *value, int crit, int gen_type, |
| 288 | X509V3_CTX *ctx) | 288 | X509V3_CTX *ctx) |
| 289 | { | 289 | { |
| 290 | unsigned char *ext_der = NULL; | 290 | unsigned char *ext_der = NULL; |
| @@ -293,9 +293,9 @@ v3_generic_extension(const char *ext, const char *value, int crit, int gen_type, | |||
| 293 | ASN1_OCTET_STRING *oct = NULL; | 293 | ASN1_OCTET_STRING *oct = NULL; |
| 294 | X509_EXTENSION *extension = NULL; | 294 | X509_EXTENSION *extension = NULL; |
| 295 | 295 | ||
| 296 | if (!(obj = OBJ_txt2obj(ext, 0))) { | 296 | if ((obj = OBJ_txt2obj(name, 0)) == NULL) { |
| 297 | X509V3error(X509V3_R_EXTENSION_NAME_ERROR); | 297 | X509V3error(X509V3_R_EXTENSION_NAME_ERROR); |
| 298 | ERR_asprintf_error_data("name=%s", ext); | 298 | ERR_asprintf_error_data("name=%s", name); |
| 299 | goto err; | 299 | goto err; |
| 300 | } | 300 | } |
| 301 | 301 | ||
