summaryrefslogtreecommitdiff
path: root/lib/libcrypto/hidden
diff options
context:
space:
mode:
authorjoshua <joshua@cvs.openbsd.org>2024-03-28 23:54:16 +0000
committerjoshua <joshua@cvs.openbsd.org>2024-03-28 23:54:16 +0000
commit33a2acc60c9ea2901d184987bdd5184364dd53cc (patch)
treec521840aadb8763e59d16aba0a5b0b15f3810606 /lib/libcrypto/hidden
parent1ec929b7c82bcac4677cc05979a29a34656a904a (diff)
Hide symbols in RIPEMD
ok beck jsing
Diffstat (limited to 'lib/libcrypto/hidden')
-rw-r--r--lib/libcrypto/hidden/openssl/ripemd.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/lib/libcrypto/hidden/openssl/ripemd.h b/lib/libcrypto/hidden/openssl/ripemd.h
new file mode 100644
index 00000000000..1fd4a0a46dc
--- /dev/null
+++ b/lib/libcrypto/hidden/openssl/ripemd.h
@@ -0,0 +1,34 @@
+/* $OpenBSD: ripemd.h,v 1.1 2024/03/28 23:54:15 joshua Exp $ */
+/*
+ * Copyright (c) 2024 Joshua Sing <joshua@joshuasing.dev>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifndef _LIBCRYPTO_RIPEMD_H
+#define _LIBCRYPTO_RIPEMD_H
+
+#ifndef _MSC_VER
+#include_next <openssl/ripemd.h>
+#else
+#include "../include/openssl/ripemd.h"
+#endif
+#include "crypto_namespace.h"
+
+LCRYPTO_USED(RIPEMD160_Init);
+LCRYPTO_USED(RIPEMD160_Update);
+LCRYPTO_USED(RIPEMD160_Final);
+LCRYPTO_USED(RIPEMD160);
+LCRYPTO_USED(RIPEMD160_Transform);
+
+#endif /* _LIBCRYPTO_RIPEMD_H */