1crypto_ss.add(genh) 2crypto_ss.add(files( 3 'afsplit.c', 4 'block-luks.c', 5 'block-qcow.c', 6 'block.c', 7 'cipher.c', 8 'hash.c', 9 'hmac.c', 10 'ivgen-essiv.c', 11 'ivgen-plain.c', 12 'ivgen-plain64.c', 13 'ivgen.c', 14 'pbkdf.c', 15 'secret_common.c', 16 'secret.c', 17 'tlscreds.c', 18 'tlscredsanon.c', 19 'tlscredspsk.c', 20 'tlscredsx509.c', 21 'tlssession.c', 22)) 23 24if nettle.found() 25 crypto_ss.add(nettle, files('hash-nettle.c', 'hmac-nettle.c', 'pbkdf-nettle.c')) 26 if xts == 'private' 27 crypto_ss.add(files('xts.c')) 28 endif 29elif gcrypt.found() 30 crypto_ss.add(gcrypt, files('hash-gcrypt.c', 'hmac-gcrypt.c', 'pbkdf-gcrypt.c')) 31elif gnutls_crypto.found() 32 crypto_ss.add(gnutls, files('hash-gnutls.c', 'hmac-gnutls.c', 'pbkdf-gnutls.c')) 33else 34 crypto_ss.add(files('hash-glib.c', 'hmac-glib.c', 'pbkdf-stub.c')) 35endif 36 37if have_keyring 38 crypto_ss.add(files('secret_keyring.c')) 39endif 40if have_afalg 41 crypto_ss.add(if_true: files('afalg.c', 'cipher-afalg.c', 'hash-afalg.c')) 42endif 43crypto_ss.add(when: gnutls, if_true: files('tls-cipher-suites.c')) 44 45util_ss.add(files('aes.c')) 46util_ss.add(files('init.c')) 47if gnutls.found() 48 util_ss.add(gnutls) 49endif 50 51if gcrypt.found() 52 util_ss.add(gcrypt, files('random-gcrypt.c')) 53elif gnutls.found() 54 util_ss.add(gnutls, files('random-gnutls.c')) 55elif get_option('rng_none') 56 util_ss.add(files('random-none.c')) 57else 58 util_ss.add(files('random-platform.c')) 59endif 60 61