From 6a083788991f0667a4bf0cc2d6f3085e08df39bc Mon Sep 17 00:00:00 2001 From: Chris Burr Date: Thu, 7 Sep 2023 23:16:44 +0200 Subject: [PATCH] Consider the Authority Key Id extension only if it's available (#113) --- src/sslutils/proxy.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/sslutils/proxy.c b/src/sslutils/proxy.c index da4d7823..78a40f63 100644 --- a/src/sslutils/proxy.c +++ b/src/sslutils/proxy.c @@ -390,14 +390,14 @@ struct VOMSProxy *VOMS_MakeProxy(struct VOMSProxyArguments *args, int *warning, ex11 = X509V3_EXT_conf_nid(NULL, &ctx, NID_authority_key_identifier, "keyid"); } - if (!ex11) { + if (ex11) { + if (!SET_EXT(ex11)) { + goto err; + } + } else if (args->selfsigned) { PRXYerr(PRXYERR_F_PROXY_SIGN,PRXYERR_R_CLASS_ADD_EXT); goto err; } - - if (!SET_EXT(ex11)) { - goto err; - } } /* class_add extension */