diff options
| author | tb <> | 2026-01-05 05:22:09 +0000 |
|---|---|---|
| committer | tb <> | 2026-01-05 05:22:09 +0000 |
| commit | 8c8759a9c13a1eb560c9a85a202bd95a1655defa (patch) | |
| tree | 23bf25625bf6e8184401f2a908b23ab7a599c9a9 /src | |
| parent | aa8cdac1c366db2c1e5370ac8b34ce29d53d09de (diff) | |
| download | openbsd-8c8759a9c13a1eb560c9a85a202bd95a1655defa.tar.gz openbsd-8c8759a9c13a1eb560c9a85a202bd95a1655defa.tar.bz2 openbsd-8c8759a9c13a1eb560c9a85a202bd95a1655defa.zip | |
ASN.1 templates: make ASN1_EXTERN_FUNCS static
These are used directly only as part of the ASN.1 item in the same file.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/asn1/x_name.c | 4 | ||||
| -rw-r--r-- | src/lib/libcrypto/asn1/x_pubkey.c | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/libcrypto/asn1/x_name.c b/src/lib/libcrypto/asn1/x_name.c index 09536666fc..eab14ad503 100644 --- a/src/lib/libcrypto/asn1/x_name.c +++ b/src/lib/libcrypto/asn1/x_name.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x_name.c,v 1.46 2025/05/10 05:54:38 tb Exp $ */ | 1 | /* $OpenBSD: x_name.c,v 1.47 2026/01/05 05:22:09 tb Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -194,7 +194,7 @@ static const ASN1_ITEM X509_NAME_INTERNAL_it = { | |||
| 194 | * to the external form. | 194 | * to the external form. |
| 195 | */ | 195 | */ |
| 196 | 196 | ||
| 197 | const ASN1_EXTERN_FUNCS x509_name_ff = { | 197 | static const ASN1_EXTERN_FUNCS x509_name_ff = { |
| 198 | .app_data = NULL, | 198 | .app_data = NULL, |
| 199 | .asn1_ex_new = x509_name_ex_new, | 199 | .asn1_ex_new = x509_name_ex_new, |
| 200 | .asn1_ex_free = x509_name_ex_free, | 200 | .asn1_ex_free = x509_name_ex_free, |
diff --git a/src/lib/libcrypto/asn1/x_pubkey.c b/src/lib/libcrypto/asn1/x_pubkey.c index ec847861ea..11ba88c133 100644 --- a/src/lib/libcrypto/asn1/x_pubkey.c +++ b/src/lib/libcrypto/asn1/x_pubkey.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x_pubkey.c,v 1.38 2025/05/10 05:54:38 tb Exp $ */ | 1 | /* $OpenBSD: x_pubkey.c,v 1.39 2026/01/05 05:22:09 tb Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -385,7 +385,7 @@ pkey_pubkey_ex_i2d(ASN1_VALUE **pval, unsigned char **out, const ASN1_ITEM *it, | |||
| 385 | return pubkey_ex_i2d(EVP_PKEY_NONE, pval, out, it); | 385 | return pubkey_ex_i2d(EVP_PKEY_NONE, pval, out, it); |
| 386 | } | 386 | } |
| 387 | 387 | ||
| 388 | const ASN1_EXTERN_FUNCS pkey_pubkey_asn1_ff = { | 388 | static const ASN1_EXTERN_FUNCS pkey_pubkey_asn1_ff = { |
| 389 | .app_data = NULL, | 389 | .app_data = NULL, |
| 390 | .asn1_ex_new = pkey_pubkey_ex_new, | 390 | .asn1_ex_new = pkey_pubkey_ex_new, |
| 391 | .asn1_ex_free = pkey_pubkey_ex_free, | 391 | .asn1_ex_free = pkey_pubkey_ex_free, |
| @@ -485,7 +485,7 @@ rsa_pubkey_ex_i2d(ASN1_VALUE **pval, unsigned char **out, const ASN1_ITEM *it, | |||
| 485 | return pubkey_ex_i2d(EVP_PKEY_RSA, pval, out, it); | 485 | return pubkey_ex_i2d(EVP_PKEY_RSA, pval, out, it); |
| 486 | } | 486 | } |
| 487 | 487 | ||
| 488 | const ASN1_EXTERN_FUNCS rsa_pubkey_asn1_ff = { | 488 | static const ASN1_EXTERN_FUNCS rsa_pubkey_asn1_ff = { |
| 489 | .app_data = NULL, | 489 | .app_data = NULL, |
| 490 | .asn1_ex_new = rsa_pubkey_ex_new, | 490 | .asn1_ex_new = rsa_pubkey_ex_new, |
| 491 | .asn1_ex_free = rsa_pubkey_ex_free, | 491 | .asn1_ex_free = rsa_pubkey_ex_free, |
| @@ -581,7 +581,7 @@ dsa_pubkey_ex_i2d(ASN1_VALUE **pval, unsigned char **out, const ASN1_ITEM *it, | |||
| 581 | return pubkey_ex_i2d(EVP_PKEY_DSA, pval, out, it); | 581 | return pubkey_ex_i2d(EVP_PKEY_DSA, pval, out, it); |
| 582 | } | 582 | } |
| 583 | 583 | ||
| 584 | const ASN1_EXTERN_FUNCS dsa_pubkey_asn1_ff = { | 584 | static const ASN1_EXTERN_FUNCS dsa_pubkey_asn1_ff = { |
| 585 | .app_data = NULL, | 585 | .app_data = NULL, |
| 586 | .asn1_ex_new = dsa_pubkey_ex_new, | 586 | .asn1_ex_new = dsa_pubkey_ex_new, |
| 587 | .asn1_ex_free = dsa_pubkey_ex_free, | 587 | .asn1_ex_free = dsa_pubkey_ex_free, |
| @@ -678,7 +678,7 @@ ec_pubkey_ex_i2d(ASN1_VALUE **pval, unsigned char **out, const ASN1_ITEM *it, | |||
| 678 | return pubkey_ex_i2d(EVP_PKEY_EC, pval, out, it); | 678 | return pubkey_ex_i2d(EVP_PKEY_EC, pval, out, it); |
| 679 | } | 679 | } |
| 680 | 680 | ||
| 681 | const ASN1_EXTERN_FUNCS ec_pubkey_asn1_ff = { | 681 | static const ASN1_EXTERN_FUNCS ec_pubkey_asn1_ff = { |
| 682 | .app_data = NULL, | 682 | .app_data = NULL, |
| 683 | .asn1_ex_new = ec_pubkey_ex_new, | 683 | .asn1_ex_new = ec_pubkey_ex_new, |
| 684 | .asn1_ex_free = ec_pubkey_ex_free, | 684 | .asn1_ex_free = ec_pubkey_ex_free, |
