_libre_CONF_parse_list
_libre_OPENSSL_load_builtin_modules
_libre_ERR_load_CONF_strings
+_libre_CRYPTO_mem_ctrl
+_libre_CRYPTO_set_id_callback
+_libre_CRYPTO_get_id_callback
+_libre_CRYPTO_thread_id
+_libre_CRYPTO_get_new_lockid
+_libre_CRYPTO_get_lock_name
+_libre_CRYPTO_num_locks
+_libre_CRYPTO_set_locking_callback
+_libre_CRYPTO_get_locking_callback
+_libre_CRYPTO_set_add_lock_callback
+_libre_CRYPTO_get_add_lock_callback
+_libre_CRYPTO_THREADID_set_numeric
+_libre_CRYPTO_THREADID_set_pointer
+_libre_CRYPTO_THREADID_set_callback
+_libre_CRYPTO_THREADID_get_callback
+_libre_CRYPTO_get_new_dynlockid
+_libre_CRYPTO_destroy_dynlockid
+_libre_CRYPTO_get_dynlock_value
+_libre_CRYPTO_set_dynlock_create_callback
+_libre_CRYPTO_set_dynlock_lock_callback
+_libre_CRYPTO_set_dynlock_destroy_callback
+_libre_CRYPTO_get_dynlock_lock_callback
+_libre_CRYPTO_get_dynlock_destroy_callback
+_libre_CRYPTO_malloc
+_libre_CRYPTO_strdup
+_libre_CRYPTO_free
+_libre_OPENSSL_cleanse
+_libre_FIPS_mode
+_libre_FIPS_mode_set
+_libre_OPENSSL_init
+_libre_CRYPTO_memcmp
-/* $OpenBSD: cryptlib.c,v 1.49 2024/03/24 06:48:03 tb Exp $ */
+/* $OpenBSD: cryptlib.c,v 1.50 2024/04/10 14:51:02 beck Exp $ */
/* ====================================================================
* Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved.
*
{
return 1;
}
+LCRYPTO_ALIAS(CRYPTO_num_locks);
unsigned long
(*CRYPTO_get_id_callback(void))(void)
{
return NULL;
}
+LCRYPTO_ALIAS(CRYPTO_get_id_callback);
void
CRYPTO_set_id_callback(unsigned long (*func)(void))
{
return;
}
+LCRYPTO_ALIAS(CRYPTO_set_id_callback);
unsigned long
CRYPTO_thread_id(void)
{
return (unsigned long)pthread_self();
}
+LCRYPTO_ALIAS(CRYPTO_thread_id);
void
CRYPTO_set_locking_callback(void (*func)(int mode, int lock_num,
{
locking_callback = func;
}
+LCRYPTO_ALIAS(CRYPTO_set_locking_callback);
void
(*CRYPTO_get_locking_callback(void))(int mode, int lock_num,
{
return locking_callback;
}
+LCRYPTO_ALIAS(CRYPTO_get_locking_callback);
void
CRYPTO_set_add_lock_callback(int (*func)(int *num, int mount, int lock_num,
{
add_lock_callback = func;
}
+LCRYPTO_ALIAS(CRYPTO_set_add_lock_callback);
int
(*CRYPTO_get_add_lock_callback(void))(int *num, int mount, int type,
{
return add_lock_callback;
}
+LCRYPTO_ALIAS(CRYPTO_get_add_lock_callback);
const char *
CRYPTO_get_lock_name(int lock_num)
{
return "";
}
+LCRYPTO_ALIAS(CRYPTO_get_lock_name);
struct CRYPTO_dynlock_value *
CRYPTO_get_dynlock_value(int i)
{
return NULL;
}
+LCRYPTO_ALIAS(CRYPTO_get_dynlock_value);
int CRYPTO_get_new_dynlockid(void)
{
return 0;
}
+LCRYPTO_ALIAS(CRYPTO_get_new_dynlockid);
void
CRYPTO_destroy_dynlockid(int i)
{
return;
}
+LCRYPTO_ALIAS(CRYPTO_destroy_dynlockid);
int CRYPTO_get_new_lockid(char *name)
{
return 0;
}
+LCRYPTO_ALIAS(CRYPTO_get_new_lockid);
int
CRYPTO_THREADID_set_callback(void (*func)(CRYPTO_THREADID *))
{
return 1;
}
+LCRYPTO_ALIAS(CRYPTO_THREADID_set_callback);
void
(*CRYPTO_THREADID_get_callback(void))(CRYPTO_THREADID *)
{
return NULL;
}
+LCRYPTO_ALIAS(CRYPTO_THREADID_get_callback);
void
CRYPTO_THREADID_set_numeric(CRYPTO_THREADID *id, unsigned long val)
{
return;
}
+LCRYPTO_ALIAS(CRYPTO_THREADID_set_numeric);
void
CRYPTO_THREADID_set_pointer(CRYPTO_THREADID *id, void *ptr)
{
return;
}
+LCRYPTO_ALIAS(CRYPTO_THREADID_set_pointer);
void
CRYPTO_set_dynlock_create_callback(struct CRYPTO_dynlock_value *(
{
return;
}
+LCRYPTO_ALIAS(CRYPTO_set_dynlock_create_callback);
void
CRYPTO_set_dynlock_lock_callback(void (*dyn_lock_function)(
{
return;
}
+LCRYPTO_ALIAS(CRYPTO_set_dynlock_lock_callback);
void
CRYPTO_set_dynlock_destroy_callback(void (*dyn_destroy_function)(
{
return;
}
+LCRYPTO_ALIAS(CRYPTO_set_dynlock_destroy_callback);
struct CRYPTO_dynlock_value *
(*CRYPTO_get_dynlock_create_callback(void))(
{
return NULL;
}
+LCRYPTO_ALIAS(CRYPTO_get_dynlock_lock_callback);
void
(*CRYPTO_get_dynlock_destroy_callback(void))(
{
return NULL;
}
+LCRYPTO_ALIAS(CRYPTO_get_dynlock_destroy_callback);
void
CRYPTO_THREADID_current(CRYPTO_THREADID *id)
return x;
}
+LCRYPTO_ALIAS(CRYPTO_memcmp);
-/* $OpenBSD: crypto.h,v 1.72 2024/03/02 15:40:05 tb Exp $ */
+/* $OpenBSD: crypto.h,v 1.73 2024/04/10 14:51:02 beck Exp $ */
/* ====================================================================
* Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved.
*
#define CRYPTO_EX_INDEX_X509_STORE_CTX 14
#define CRYPTO_EX_INDEX__COUNT 15
-#ifndef LIBRESSL_INTERNAL
#define CRYPTO_malloc_init() (0)
#define CRYPTO_malloc_debug_init() (0)
#define OPENSSL_malloc(num) CRYPTO_malloc((num),NULL,0)
#define OPENSSL_strdup(str) CRYPTO_strdup((str),NULL,0)
#define OPENSSL_free(addr) CRYPTO_free((addr),NULL,0)
-#endif
const char *OpenSSL_version(int type);
#define OPENSSL_VERSION 0
/* Don't use this structure directly. */
typedef struct crypto_threadid_st CRYPTO_THREADID;
-#ifndef LIBRESSL_INTERNAL
/* These functions are deprecated no-op stubs */
void CRYPTO_set_id_callback(unsigned long (*func)(void));
unsigned long (*CRYPTO_get_id_callback(void))(void);
struct CRYPTO_dynlock_value *(*CRYPTO_get_dynlock_create_callback(void))(const char *file, int line);
void (*CRYPTO_get_dynlock_lock_callback(void))(int mode, struct CRYPTO_dynlock_value *l, const char *file, int line);
void (*CRYPTO_get_dynlock_destroy_callback(void))(struct CRYPTO_dynlock_value *l, const char *file, int line);
-#endif
/* CRYPTO_set_mem_functions includes CRYPTO_set_locked_mem_functions --
* call the latter last if you need different functions */
int CRYPTO_set_mem_ex_functions(void *(*m)(size_t, const char *, int),
void *(*r)(void *, size_t, const char *, int), void (*f)(void *));
-#ifndef LIBRESSL_INTERNAL
void *CRYPTO_malloc(size_t num, const char *file, int line);
char *CRYPTO_strdup(const char *str, const char *file, int line);
void CRYPTO_free(void *ptr, const char *file, int line);
-#endif
-#ifndef LIBRESSL_INTERNAL
void OPENSSL_cleanse(void *ptr, size_t len);
-#endif
/*
* Because this is a public header, use a portable method of indicating the
uint64_t OPENSSL_cpu_caps(void);
-#ifndef LIBRESSL_INTERNAL
int FIPS_mode(void);
int FIPS_mode_set(int r);
* defined order as the return value when a != b is undefined, other than to be
* non-zero. */
int CRYPTO_memcmp(const void *a, const void *b, size_t len);
-#endif
/*
* OpenSSL compatible OPENSSL_INIT options.
-/* $OpenBSD: crypto_init.c,v 1.20 2024/04/09 13:52:41 beck Exp $ */
+/* $OpenBSD: crypto_init.c,v 1.21 2024/04/10 14:51:02 beck Exp $ */
/*
* Copyright (c) 2018 Bob Beck <beck@openbsd.org>
*
OPENSSL_init(void)
{
}
+LCRYPTO_ALIAS(OPENSSL_init);
static void
OPENSSL_init_crypto_internal(void)
-/* $OpenBSD: crypto.h,v 1.6 2024/03/02 11:37:13 tb Exp $ */
+/* $OpenBSD: crypto.h,v 1.7 2024/04/10 14:51:02 beck Exp $ */
/*
* Copyright (c) 2023 Bob Beck <beck@openbsd.org>
*
LCRYPTO_USED(OPENSSL_cleanup);
LCRYPTO_USED(OPENSSL_gmtime);
LCRYPTO_USED(ERR_load_CRYPTO_strings);
+LCRYPTO_UNUSED(CRYPTO_mem_ctrl);
+LCRYPTO_UNUSED(CRYPTO_set_id_callback);
+LCRYPTO_UNUSED(CRYPTO_get_id_callback);
+LCRYPTO_UNUSED(CRYPTO_thread_id);
+LCRYPTO_UNUSED(CRYPTO_get_new_lockid);
+LCRYPTO_UNUSED(CRYPTO_get_lock_name);
+LCRYPTO_UNUSED(CRYPTO_num_locks);
+LCRYPTO_UNUSED(CRYPTO_set_locking_callback);
+LCRYPTO_UNUSED(CRYPTO_get_locking_callback);
+LCRYPTO_UNUSED(CRYPTO_set_add_lock_callback);
+LCRYPTO_UNUSED(CRYPTO_get_add_lock_callback);
+LCRYPTO_UNUSED(CRYPTO_THREADID_set_numeric);
+LCRYPTO_UNUSED(CRYPTO_THREADID_set_pointer);
+LCRYPTO_UNUSED(CRYPTO_THREADID_set_callback);
+LCRYPTO_UNUSED(CRYPTO_THREADID_get_callback);
+LCRYPTO_UNUSED(CRYPTO_get_new_dynlockid);
+LCRYPTO_UNUSED(CRYPTO_destroy_dynlockid);
+LCRYPTO_UNUSED(CRYPTO_get_dynlock_value);
+LCRYPTO_UNUSED(CRYPTO_set_dynlock_create_callback);
+LCRYPTO_UNUSED(CRYPTO_set_dynlock_lock_callback);
+LCRYPTO_UNUSED(CRYPTO_set_dynlock_destroy_callback);
+LCRYPTO_UNUSED(CRYPTO_get_dynlock_lock_callback);
+LCRYPTO_UNUSED(CRYPTO_get_dynlock_destroy_callback);
+LCRYPTO_UNUSED(CRYPTO_malloc);
+LCRYPTO_UNUSED(CRYPTO_strdup);
+LCRYPTO_UNUSED(CRYPTO_free);
+LCRYPTO_UNUSED(OPENSSL_cleanse);
+LCRYPTO_UNUSED(FIPS_mode);
+LCRYPTO_UNUSED(FIPS_mode_set);
+LCRYPTO_UNUSED(OPENSSL_init);
+LCRYPTO_UNUSED(CRYPTO_memcmp);
#endif /* _LIBCRYPTO_CRYPTO_H */
-/* $OpenBSD: malloc-wrapper.c,v 1.10 2024/03/02 11:35:09 tb Exp $ */
+/* $OpenBSD: malloc-wrapper.c,v 1.11 2024/04/10 14:51:02 beck Exp $ */
/*
* Copyright (c) 2014 Bob Beck
*
{
return malloc(num);
}
+LCRYPTO_ALIAS(CRYPTO_malloc);
char *
CRYPTO_strdup(const char *str, const char *file, int line)
{
return strdup(str);
}
+LCRYPTO_ALIAS(CRYPTO_strdup);
void
CRYPTO_free(void *ptr, const char *file, int line)
{
free(ptr);
}
+LCRYPTO_ALIAS(CRYPTO_free);
-/* $OpenBSD: mem_clr.c,v 1.4 2014/06/12 15:49:27 deraadt Exp $ */
+/* $OpenBSD: mem_clr.c,v 1.5 2024/04/10 14:51:02 beck Exp $ */
/* Ted Unangst places this file in the public domain. */
#include <string.h>
{
explicit_bzero(ptr, len);
}
+LCRYPTO_ALIAS(OPENSSL_cleanse);
-/* $OpenBSD: mem_dbg.c,v 1.27 2024/03/02 11:32:31 tb Exp $ */
+/* $OpenBSD: mem_dbg.c,v 1.28 2024/04/10 14:51:02 beck Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
{
return (CRYPTO_MEM_CHECK_OFF);
}
+LCRYPTO_ALIAS(CRYPTO_mem_ctrl);
-/* $OpenBSD: o_fips.c,v 1.6 2021/10/23 13:57:00 schwarze Exp $ */
+/* $OpenBSD: o_fips.c,v 1.7 2024/04/10 14:51:02 beck Exp $ */
/* Written by Stephen Henson (steve@openssl.org) for the OpenSSL
* project 2011.
*/
{
return 0;
}
+LCRYPTO_ALIAS(FIPS_mode);
int
FIPS_mode_set(int r)
CRYPTOerror(CRYPTO_R_FIPS_MODE_NOT_SUPPORTED);
return 0;
}
+LCRYPTO_ALIAS(FIPS_mode_set);