moved some common transmission opts to struct

This commit is contained in:
Martin Pulec
2024-08-05 15:56:00 +02:00
parent b785c3d845
commit 1ab725d575
20 changed files with 149 additions and 146 deletions

View File

@@ -234,7 +234,7 @@ struct tx *tx_init(struct module *parent, unsigned mtu, enum tx_media_type media
return NULL;
}
}
if (encryption) {
if (strlen(encryption) > 0) {
tx->enc_funcs = static_cast<const struct openssl_encrypt_info *>(load_library("openssl_encrypt",
LIBRARY_CLASS_UNDEFINED, OPENSSL_ENCRYPT_ABI_VERSION));
if (!tx->enc_funcs) {