summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjsing <>2016-11-02 10:45:02 +0000
committerjsing <>2016-11-02 10:45:02 +0000
commit703971be59e1c8a9adc64438c7b3faecace298f0 (patch)
tree8cd81ef6cca72e37a08a1a68590bb42bf9e15051 /src
parente3d5164531bc88598401d93d3c3830de861e9900 (diff)
downloadopenbsd-703971be59e1c8a9adc64438c7b3faecace298f0.tar.gz
openbsd-703971be59e1c8a9adc64438c7b3faecace298f0.tar.bz2
openbsd-703971be59e1c8a9adc64438c7b3faecace298f0.zip
Expand IMPLEMENT_LHASH_COMP_FN/IMPLEMENT_LHASH_HASH_FN macros - the only
change to generated assembly results from a difference in line numbers.
Diffstat (limited to 'src')
-rw-r--r--src/lib/libssl/ssl_lib.c22
1 files changed, 17 insertions, 5 deletions
diff --git a/src/lib/libssl/ssl_lib.c b/src/lib/libssl/ssl_lib.c
index 4fa9b149b1..86cac6eace 100644
--- a/src/lib/libssl/ssl_lib.c
+++ b/src/lib/libssl/ssl_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_lib.c,v 1.119 2016/10/19 16:38:40 jsing Exp $ */ 1/* $OpenBSD: ssl_lib.c,v 1.120 2016/11/02 10:45:02 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -1756,10 +1756,22 @@ ssl_session_cmp(const SSL_SESSION *a, const SSL_SESSION *b)
1756 * variable. The reason is that the functions aren't static, they're exposed via 1756 * variable. The reason is that the functions aren't static, they're exposed via
1757 * ssl.h. 1757 * ssl.h.
1758 */ 1758 */
1759static 1759static unsigned long
1760IMPLEMENT_LHASH_HASH_FN(ssl_session, SSL_SESSION) 1760ssl_session_LHASH_HASH(const void *arg)
1761static 1761{
1762IMPLEMENT_LHASH_COMP_FN(ssl_session, SSL_SESSION) 1762 const SSL_SESSION *a = arg;
1763
1764 return ssl_session_hash(a);
1765}
1766
1767static int
1768ssl_session_LHASH_COMP(const void *arg1, const void *arg2)
1769{
1770 const SSL_SESSION *a = arg1;
1771 const SSL_SESSION *b = arg2;
1772
1773 return ssl_session_cmp(a, b);
1774}
1763 1775
1764SSL_CTX * 1776SSL_CTX *
1765SSL_CTX_new(const SSL_METHOD *meth) 1777SSL_CTX_new(const SSL_METHOD *meth)