diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-06 01:56:47 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-06 01:56:47 +0000 |
commit | 763dc4a2181e7b488a36f8284ea2b0140d45c38e (patch) | |
tree | f3c249863cf7ff3e8d0eb5f5305b69d7663a8439 /src/libcryptobox | |
parent | 8fd7fee2ddfa640bb30e7f9e2c44d0f656129c13 (diff) | |
download | rspamd-763dc4a2181e7b488a36f8284ea2b0140d45c38e.tar.gz rspamd-763dc4a2181e7b488a36f8284ea2b0140d45c38e.zip |
Fix rspamadm
Diffstat (limited to 'src/libcryptobox')
-rw-r--r-- | src/libcryptobox/keypair.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libcryptobox/keypair.c b/src/libcryptobox/keypair.c index 936ec219f..92beb592c 100644 --- a/src/libcryptobox/keypair.c +++ b/src/libcryptobox/keypair.c @@ -608,6 +608,11 @@ rspamd_keypair_from_ucl (const ucl_object_t *obj) return NULL; } + elt = ucl_object_find_key (obj, "keypair"); + if (elt != NULL) { + obj = elt; + } + pubkey = ucl_object_find_any_key (obj, "pubkey", "public", "public_key", NULL); if (pubkey == NULL || ucl_object_type (pubkey) != UCL_STRING) { |