From de5891815932de36675e2f49faef3cbd7b479b96 Mon Sep 17 00:00:00 2001 From: Liong Sauw Ming Date: Mon, 8 Aug 2016 09:09:29 +0000 Subject: Re #1943: AES-GCM crypto support for SRTP Special thanks to Alexander Traud for the patch. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5412 74dad513-b988-da41-8d7b-12977e46ad98 --- third_party/build/os-auto.mak.in | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'third_party/build/os-auto.mak.in') diff --git a/third_party/build/os-auto.mak.in b/third_party/build/os-auto.mak.in index ef261f65..66653fa1 100644 --- a/third_party/build/os-auto.mak.in +++ b/third_party/build/os-auto.mak.in @@ -35,6 +35,22 @@ ifeq (@ac_external_srtp@,1) # External SRTP else DIRS += srtp + +ifeq (@ac_ssl_has_aes_gcm@,0) +CIPHERS_SRC = crypto/cipher/aes.o crypto/cipher/aes_icm.o \ + crypto/cipher/aes_cbc.o +HASHES_SRC = crypto/hash/sha1.o crypto/hash/hmac.o \ + # crypto/hash/tmmhv2.o +RNG_SRC = crypto/rng/rand_source.o crypto/rng/prng.o \ + crypto/rng/ctr_prng.o +else +CIPHERS_SRC = crypto/cipher/aes_icm_ossl.o crypto/cipher/aes_gcm_ossl.o +HASHES_SRC = crypto/hash/hmac_ossl.o +RNG_SRC = crypto/rng/rand_source_ossl.o +SRTP_OTHER_CFLAGS = -DOPENSSL +endif + + endif ifeq (@ac_pjmedia_resample@,libresample) -- cgit v1.2.3