Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A valid legacy proxy should not trigger an error msg #469

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 10 additions & 2 deletions src/XrdCrypto/XrdCryptosslX509.cc
Original file line number Diff line number Diff line change
Expand Up @@ -358,12 +358,20 @@ void XrdCryptosslX509::CertType()
type = kUnknown;
if ((idx = X509_get_ext_by_NID(cert, NID_proxyCertInfo,-1)) == -1) {
XrdOucString emsg;
if (XrdCryptosslX509CheckProxy3(this, emsg) == 0) {
switch (XrdCryptosslX509CheckProxy3(this, emsg)) {
case 0:
{
type = kProxy;
done = 1;
pxytype = 3;
DEBUG("Found GSI 3 proxyCertInfo extension");
} else {
break;
}
case -1:
{
PRINT("ERROR: "<<emsg);
break;
}
}
} else {
if ((ext = X509_get_ext(cert,idx)) == 0) {
Expand Down
2 changes: 1 addition & 1 deletion src/XrdCrypto/XrdCryptosslgsiAux.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1374,7 +1374,7 @@ int XrdCryptosslX509CheckProxy3(XrdCryptoX509 *xcpi, XrdOucString &emsg) {
}
if (!ext) {
emsg = "proxyCertInfo extension not found";
return -1;
return -2;
}
if (!pci) {
emsg = "proxyCertInfo extension could not be deserialized";
Expand Down