diff options
author | tb <> | 2023-04-10 14:10:26 +0000 |
---|---|---|
committer | tb <> | 2023-04-10 14:10:26 +0000 |
commit | 2fd67c35cd7f800ca7bb303473e0a6bb206972a1 (patch) | |
tree | 441e7e565635a280bb6ccee68d0b4282c7fb786b | |
parent | b69dbf2c57956e07d5446387867f5b0443ebb5ab (diff) | |
download | openbsd-2fd67c35cd7f800ca7bb303473e0a6bb206972a1.tar.gz openbsd-2fd67c35cd7f800ca7bb303473e0a6bb206972a1.tar.bz2 openbsd-2fd67c35cd7f800ca7bb303473e0a6bb206972a1.zip |
Make bn_to_string() static
This function is no longer used directly by regress, so it can now be local
to this file.
-rw-r--r-- | src/lib/libcrypto/x509/x509_utl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/x509/x509_utl.c b/src/lib/libcrypto/x509/x509_utl.c index ec67ae093c..08151f16d5 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.6 2023/02/16 08:38:17 tb Exp $ */ | 1 | /* $OpenBSD: x509_utl.c,v 1.7 2023/04/10 14:10:26 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 | */ |
@@ -66,7 +66,7 @@ | |||
66 | #include <openssl/err.h> | 66 | #include <openssl/err.h> |
67 | #include <openssl/x509v3.h> | 67 | #include <openssl/x509v3.h> |
68 | 68 | ||
69 | char *bn_to_string(const BIGNUM *bn); | 69 | static char *bn_to_string(const BIGNUM *bn); |
70 | static char *strip_spaces(char *name); | 70 | static char *strip_spaces(char *name); |
71 | static int sk_strcmp(const char * const *a, const char * const *b); | 71 | static int sk_strcmp(const char * const *a, const char * const *b); |
72 | static STACK_OF(OPENSSL_STRING) *get_email(X509_NAME *name, | 72 | static STACK_OF(OPENSSL_STRING) *get_email(X509_NAME *name, |
@@ -161,7 +161,7 @@ X509V3_add_value_bool_nf(const char *name, int asn1_bool, | |||
161 | } | 161 | } |
162 | LCRYPTO_ALIAS(X509V3_add_value_bool_nf); | 162 | LCRYPTO_ALIAS(X509V3_add_value_bool_nf); |
163 | 163 | ||
164 | char * | 164 | static char * |
165 | bn_to_string(const BIGNUM *bn) | 165 | bn_to_string(const BIGNUM *bn) |
166 | { | 166 | { |
167 | const char *sign = ""; | 167 | const char *sign = ""; |