summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2014-07-10 22:13:40 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2014-07-10 22:13:40 +0000
commitc91dd69f085de982c70898116e3538397e189678 (patch)
treee64b5c267972c3e6c4a5b57a9e874c072215c485
parent3919904cbc2fb28dc9416ed061aa7cba81939c80 (diff)
OPENSSL_stderr() is unused so nuke it. OPENSSL_showfatal() is only used by
OpenSSLDie(), which is in the same file, so just make it static. ok miod@
-rw-r--r--lib/libcrypto/cryptlib.c11
-rw-r--r--lib/libcrypto/cryptlib.h4
2 files changed, 3 insertions, 12 deletions
diff --git a/lib/libcrypto/cryptlib.c b/lib/libcrypto/cryptlib.c
index 86f51917e29..75d66d4ee98 100644
--- a/lib/libcrypto/cryptlib.c
+++ b/lib/libcrypto/cryptlib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cryptlib.c,v 1.29 2014/07/10 20:02:58 jsing Exp $ */
+/* $OpenBSD: cryptlib.c,v 1.30 2014/07/10 22:13:39 jsing Exp $ */
/* ====================================================================
* Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved.
*
@@ -688,8 +688,7 @@ OPENSSL_cpuid_setup(void)
}
#endif
-
-void
+static void
OPENSSL_showfatal(const char *fmta, ...)
{
va_list ap;
@@ -708,12 +707,6 @@ OpenSSLDie(const char *file, int line, const char *assertion)
abort();
}
-void *
-OPENSSL_stderr(void)
-{
- return stderr;
-}
-
int
CRYPTO_memcmp(const void *in_a, const void *in_b, size_t len)
{
diff --git a/lib/libcrypto/cryptlib.h b/lib/libcrypto/cryptlib.h
index ad669a27452..679af821c1e 100644
--- a/lib/libcrypto/cryptlib.h
+++ b/lib/libcrypto/cryptlib.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cryptlib.h,v 1.22 2014/07/10 20:42:45 jsing Exp $ */
+/* $OpenBSD: cryptlib.h,v 1.23 2014/07/10 22:13:39 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -78,8 +78,6 @@ extern "C" {
void OPENSSL_cpuid_setup(void);
extern unsigned int OPENSSL_ia32cap_P[];
-void OPENSSL_showfatal(const char *fmta,...);
-void *OPENSSL_stderr(void);
#ifdef __cplusplus
}