Skip to content

Commit

Permalink
Fix some missed usage of DEFINE_LHASH_OF()
Browse files Browse the repository at this point in the history
PR#12860 fixed issues with the Lhash code. It replaced usage of
DEFINE_LHASH_OF() in the public headers. Unfortunately it missed a couple
of instances.

Reviewed-by: Paul Dale <[email protected]>
Reviewed-by: Richard Levitte <[email protected]>
(Merged from openssl#13274)
  • Loading branch information
mattcaswell committed Oct 30, 2020
1 parent 140eee2 commit e82f459
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 15 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
/include/openssl/err.h
/include/openssl/ess.h
/include/openssl/fipskey.h
/include/openssl/lhash.h
/include/openssl/ocsp.h
/include/openssl/opensslv.h
/include/openssl/pkcs12.h
Expand Down
2 changes: 2 additions & 0 deletions build.info
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ DEPEND[]=include/openssl/asn1.h \
include/openssl/err.h \
include/openssl/ess.h \
include/openssl/fipskey.h \
include/openssl/lhash.h \
include/openssl/opensslv.h \
include/openssl/ocsp.h \
include/openssl/pkcs12.h \
Expand Down Expand Up @@ -53,6 +54,7 @@ GENERATE[include/openssl/ct.h]=include/openssl/ct.h.in
GENERATE[include/openssl/err.h]=include/openssl/err.h.in
GENERATE[include/openssl/ess.h]=include/openssl/ess.h.in
GENERATE[include/openssl/fipskey.h]=include/openssl/fipskey.h.in
GENERATE[include/openssl/lhash.h]=include/openssl/lhash.h.in
GENERATE[include/openssl/ocsp.h]=include/openssl/ocsp.h.in
GENERATE[include/openssl/opensslv.h]=include/openssl/opensslv.h.in
GENERATE[include/openssl/pkcs12.h]=include/openssl/pkcs12.h.in
Expand Down
23 changes: 8 additions & 15 deletions include/openssl/lhash.h → include/openssl/lhash.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
* https://www.openssl.org/source/license.html
*/

{-
use OpenSSL::stackhash qw(generate_lhash_macros);
-}

/*
* Header for dynamic hash table routines Author - Eric Young
*/
Expand Down Expand Up @@ -240,21 +244,10 @@ void OPENSSL_LH_node_usage_stats_bio(const OPENSSL_LHASH *lh, BIO *out);
} \
LHASH_OF(type)

DEFINE_LHASH_OF(OPENSSL_STRING);
# ifdef _MSC_VER
/*
* push and pop this warning:
* warning C4090: 'function': different 'const' qualifiers
*/
# pragma warning (push)
# pragma warning (disable: 4090)
# endif

DEFINE_LHASH_OF(OPENSSL_CSTRING);

# ifdef _MSC_VER
# pragma warning (pop)
# endif
{-
generate_lhash_macros("OPENSSL_STRING")
.generate_lhash_macros("OPENSSL_CSTRING");
-}

#ifdef __cplusplus
}
Expand Down

0 comments on commit e82f459

Please sign in to comment.