crypto: make configurable crypto engines 45/42445/8
authorNicolas PLANEL <nplanel@cisco.com>
Fri, 28 Feb 2025 18:59:14 +0000 (19:59 +0100)
committerDamjan Marion <dmarion@0xa5.net>
Fri, 4 Apr 2025 15:02:44 +0000 (15:02 +0000)
commitf479eeb76b4a1aa0bfd3adf888a8679e27875fd8
tree3ba0e29f4c5e5ab07a45ecafbf8f6f60730e3e84
parent6fa7a0e408d1737b9ba2f809518e9b7ad2b51ac3
crypto: make configurable crypto engines

Add a configuration sections crypto-engines, it works like plugins syntax :

The following configuration will load and register only openssl engine

'''
crypto-engines {
        default {disable}
        openssl {enable}
}
'''

And this one will load all engines except openssl

'''
crypto-engines {
        default {enable}
        openssl {disable}
}
'''

Type: feature
Change-Id: Ia637db93b497d0c4333704f3c024e85de3941791
Signed-off-by: Nicolas PLANEL <nplanel@cisco.com>
Signed-off-by: Nicolas PLANEL <nplanel@gmail.com>
Signed-off-by: Nicolas PLANEL <nplanel@cisco.com>
src/vnet/CMakeLists.txt
src/vnet/crypto/config.c [new file with mode: 0644]
src/vnet/crypto/crypto.c
src/vnet/crypto/crypto.h