summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/evp')
-rw-r--r--src/lib/libcrypto/evp/evp_names.c51
1 files changed, 50 insertions, 1 deletions
diff --git a/src/lib/libcrypto/evp/evp_names.c b/src/lib/libcrypto/evp/evp_names.c
index b09f71b4c4..046391fe30 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.6 2024/01/13 12:15:27 tb Exp $ */ 1/* $OpenBSD: evp_names.c,v 1.7 2024/01/13 12:18:52 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2023 Theo Buehler <tb@openbsd.org> 3 * Copyright (c) 2023 Theo Buehler <tb@openbsd.org>
4 * 4 *
@@ -15,6 +15,7 @@
15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 */ 16 */
17 17
18#include <openssl/err.h>
18#include <openssl/evp.h> 19#include <openssl/evp.h>
19#include <openssl/objects.h> 20#include <openssl/objects.h>
20 21
@@ -1787,3 +1788,51 @@ EVP_add_digest(const EVP_MD *md)
1787{ 1788{
1788 return 1; 1789 return 1;
1789} 1790}
1791
1792int
1793OBJ_NAME_init(void)
1794{
1795 OBJerror(ERR_R_DISABLED);
1796 return 0;
1797}
1798LCRYPTO_ALIAS(OBJ_NAME_init);
1799
1800int
1801OBJ_NAME_new_index(unsigned long (*hash_func)(const char *),
1802 int (*cmp_func)(const char *, const char *),
1803 void (*free_func)(const char *, int, const char *))
1804{
1805 OBJerror(ERR_R_DISABLED);
1806 return 0;
1807}
1808LCRYPTO_ALIAS(OBJ_NAME_new_index);
1809
1810const char *
1811OBJ_NAME_get(const char *name, int type)
1812{
1813 OBJerror(ERR_R_DISABLED);
1814 return NULL;
1815}
1816LCRYPTO_ALIAS(OBJ_NAME_get);
1817
1818int
1819OBJ_NAME_add(const char *name, int type, const char *data)
1820{
1821 /* No error to avoid polluting xca's error stack. */
1822 return 0;
1823}
1824LCRYPTO_ALIAS(OBJ_NAME_add);
1825
1826int
1827OBJ_NAME_remove(const char *name, int type)
1828{
1829 OBJerror(ERR_R_DISABLED);
1830 return 0;
1831}
1832LCRYPTO_ALIAS(OBJ_NAME_remove);
1833
1834void
1835OBJ_NAME_cleanup(int type)
1836{
1837}
1838LCRYPTO_ALIAS(OBJ_NAME_cleanup);