summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authortb <>2023-04-10 14:10:26 +0000
committertb <>2023-04-10 14:10:26 +0000
commit2fd67c35cd7f800ca7bb303473e0a6bb206972a1 (patch)
tree441e7e565635a280bb6ccee68d0b4282c7fb786b /src/lib
parentb69dbf2c57956e07d5446387867f5b0443ebb5ab (diff)
downloadopenbsd-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.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/x509/x509_utl.c6
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
69char *bn_to_string(const BIGNUM *bn); 69static char *bn_to_string(const BIGNUM *bn);
70static char *strip_spaces(char *name); 70static char *strip_spaces(char *name);
71static int sk_strcmp(const char * const *a, const char * const *b); 71static int sk_strcmp(const char * const *a, const char * const *b);
72static STACK_OF(OPENSSL_STRING) *get_email(X509_NAME *name, 72static 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}
162LCRYPTO_ALIAS(X509V3_add_value_bool_nf); 162LCRYPTO_ALIAS(X509V3_add_value_bool_nf);
163 163
164char * 164static char *
165bn_to_string(const BIGNUM *bn) 165bn_to_string(const BIGNUM *bn)
166{ 166{
167 const char *sign = ""; 167 const char *sign = "";