SHARED_SOURCE doesn't pull in siphash if its disabled in the
configuration leading to undefined symbols, which we need for quic.
If siphash is disabled in the build, then pull it in via a SOURCE
addition, otherwise pull it in via SHARED_SOURCE
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26874)
# in libssl as well.
SHARED_SOURCE[../libssl]=\
../crypto/packet.c ../crypto/quic_vlint.c ../crypto/time.c \
- ../crypto/hashtable/hashfunc.c ../crypto/siphash/siphash.c
+ ../crypto/hashtable/hashfunc.c
IF[{- !$disabled{'deprecated-3.0'} -}]
SOURCE[../libssl]=ssl_rsa_legacy.c
IF[{- !$disabled{quic} -}]
SOURCE[../libssl]=priority_queue.c
+ IF[{- $disabled{siphash} -}]
+ SOURCE[../libssl]=../crypto/siphash/siphash.c
+ ELSE
+ SHARED_SOURCE[../libssl]=../crypto/siphash/siphash.c
+ ENDIF
ENDIF