From 763dc4a2181e7b488a36f8284ea2b0140d45c38e Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 6 Feb 2016 01:56:47 +0000 Subject: Fix rspamadm --- src/libcryptobox/keypair.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/libcryptobox') 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) { -- cgit v1.2.3