Skip to content

Commit

Permalink
Consider the Authority Key Id extension only if it's available (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisburr authored Sep 7, 2023
1 parent 1629412 commit 6a08378
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/sslutils/proxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 6a08378

Please sign in to comment.