diff options
Diffstat (limited to 'src/lib/libcrypto/evp/evp_names.c')
-rw-r--r-- | src/lib/libcrypto/evp/evp_names.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/libcrypto/evp/evp_names.c b/src/lib/libcrypto/evp/evp_names.c index d1e21d2793..99ad53e3ac 100644 --- a/src/lib/libcrypto/evp/evp_names.c +++ b/src/lib/libcrypto/evp/evp_names.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: evp_names.c,v 1.15 2024/03/24 13:56:35 jca Exp $ */ | 1 | /* $OpenBSD: evp_names.c,v 1.16 2024/04/09 13:52:41 beck Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2023 Theo Buehler <tb@openbsd.org> | 3 | * Copyright (c) 2023 Theo Buehler <tb@openbsd.org> |
4 | * | 4 | * |
@@ -1495,6 +1495,7 @@ EVP_CIPHER_do_all_sorted(void (*fn)(const EVP_CIPHER *, const char *, | |||
1495 | fn(evp_cipher, cipher->name, NULL, arg); | 1495 | fn(evp_cipher, cipher->name, NULL, arg); |
1496 | } | 1496 | } |
1497 | } | 1497 | } |
1498 | LCRYPTO_ALIAS(EVP_CIPHER_do_all_sorted); | ||
1498 | 1499 | ||
1499 | void | 1500 | void |
1500 | EVP_CIPHER_do_all(void (*fn)(const EVP_CIPHER *, const char *, const char *, | 1501 | EVP_CIPHER_do_all(void (*fn)(const EVP_CIPHER *, const char *, const char *, |
@@ -1502,6 +1503,7 @@ EVP_CIPHER_do_all(void (*fn)(const EVP_CIPHER *, const char *, const char *, | |||
1502 | { | 1503 | { |
1503 | EVP_CIPHER_do_all_sorted(fn, arg); | 1504 | EVP_CIPHER_do_all_sorted(fn, arg); |
1504 | } | 1505 | } |
1506 | LCRYPTO_ALIAS(EVP_CIPHER_do_all); | ||
1505 | 1507 | ||
1506 | void | 1508 | void |
1507 | EVP_MD_do_all_sorted(void (*fn)(const EVP_MD *, const char *, const char *, | 1509 | EVP_MD_do_all_sorted(void (*fn)(const EVP_MD *, const char *, const char *, |
@@ -1525,6 +1527,7 @@ EVP_MD_do_all_sorted(void (*fn)(const EVP_MD *, const char *, const char *, | |||
1525 | fn(evp_md, digest->name, NULL, arg); | 1527 | fn(evp_md, digest->name, NULL, arg); |
1526 | } | 1528 | } |
1527 | } | 1529 | } |
1530 | LCRYPTO_ALIAS(EVP_MD_do_all_sorted); | ||
1528 | 1531 | ||
1529 | void | 1532 | void |
1530 | EVP_MD_do_all(void (*fn)(const EVP_MD *, const char *, const char *, void *), | 1533 | EVP_MD_do_all(void (*fn)(const EVP_MD *, const char *, const char *, void *), |
@@ -1532,6 +1535,7 @@ EVP_MD_do_all(void (*fn)(const EVP_MD *, const char *, const char *, void *), | |||
1532 | { | 1535 | { |
1533 | EVP_MD_do_all_sorted(fn, arg); | 1536 | EVP_MD_do_all_sorted(fn, arg); |
1534 | } | 1537 | } |
1538 | LCRYPTO_ALIAS(EVP_MD_do_all); | ||
1535 | 1539 | ||
1536 | /* | 1540 | /* |
1537 | * The OBJ_NAME API is completely misnamed. It has little to do with objects | 1541 | * The OBJ_NAME API is completely misnamed. It has little to do with objects |
@@ -1652,6 +1656,7 @@ EVP_get_cipherbyname(const char *name) | |||
1652 | 1656 | ||
1653 | return cipher->cipher(); | 1657 | return cipher->cipher(); |
1654 | } | 1658 | } |
1659 | LCRYPTO_ALIAS(EVP_get_cipherbyname); | ||
1655 | 1660 | ||
1656 | static int | 1661 | static int |
1657 | digest_cmp(const void *a, const void *b) | 1662 | digest_cmp(const void *a, const void *b) |
@@ -1676,6 +1681,7 @@ EVP_get_digestbyname(const char *name) | |||
1676 | 1681 | ||
1677 | return digest->digest(); | 1682 | return digest->digest(); |
1678 | } | 1683 | } |
1684 | LCRYPTO_ALIAS(EVP_get_digestbyname); | ||
1679 | 1685 | ||
1680 | /* | 1686 | /* |
1681 | * XXX - this is here because most of its job was to clean up the dynamic | 1687 | * XXX - this is here because most of its job was to clean up the dynamic |
@@ -1687,3 +1693,4 @@ void | |||
1687 | EVP_cleanup(void) | 1693 | EVP_cleanup(void) |
1688 | { | 1694 | { |
1689 | } | 1695 | } |
1696 | LCRYPTO_ALIAS(EVP_cleanup); | ||