diff options
author | jsing <> | 2016-11-02 10:45:02 +0000 |
---|---|---|
committer | jsing <> | 2016-11-02 10:45:02 +0000 |
commit | 703971be59e1c8a9adc64438c7b3faecace298f0 (patch) | |
tree | 8cd81ef6cca72e37a08a1a68590bb42bf9e15051 | |
parent | e3d5164531bc88598401d93d3c3830de861e9900 (diff) | |
download | openbsd-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.
-rw-r--r-- | src/lib/libssl/ssl_lib.c | 22 |
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 | */ |
1759 | static | 1759 | static unsigned long |
1760 | IMPLEMENT_LHASH_HASH_FN(ssl_session, SSL_SESSION) | 1760 | ssl_session_LHASH_HASH(const void *arg) |
1761 | static | 1761 | { |
1762 | IMPLEMENT_LHASH_COMP_FN(ssl_session, SSL_SESSION) | 1762 | const SSL_SESSION *a = arg; |
1763 | |||
1764 | return ssl_session_hash(a); | ||
1765 | } | ||
1766 | |||
1767 | static int | ||
1768 | ssl_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 | ||
1764 | SSL_CTX * | 1776 | SSL_CTX * |
1765 | SSL_CTX_new(const SSL_METHOD *meth) | 1777 | SSL_CTX_new(const SSL_METHOD *meth) |