Skip to content

Commit

Permalink
fixed some error messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
sakane committed Dec 27, 2000
1 parent 14a24f9 commit c49231f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions kame/kame/racoon/oakley.c
@@ -1,4 +1,4 @@
/* $KAME: oakley.c,v 1.75 2000/12/26 00:10:19 sakane Exp $ */
/* $KAME: oakley.c,v 1.76 2000/12/27 04:36:46 sakane Exp $ */

/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
Expand Down Expand Up @@ -1493,7 +1493,7 @@ oakley_check_certid(iph1)
name = eay_get_x509asn1subjectname(&iph1->cert_p->cert);
if (!name) {
plog(LLV_ERROR, LOCATION, NULL,
"Invalid SubjectName.\n");
"failed to get subjectName\n");
return ISAKMP_NTYPE_INVALID_CERTIFICATE;
}
if (idlen != name->l) {
Expand Down Expand Up @@ -1521,14 +1521,14 @@ oakley_check_certid(iph1)
if (eay_get_x509subjectaltname(&iph1->cert_p->cert,
&altname, &type, pos) !=0) {
plog(LLV_ERROR, LOCATION, NULL,
"Invalid SubjectAltName.\n");
"failed to get subjectAltName\n");
return ISAKMP_NTYPE_INVALID_CERTIFICATE;
}

/* it's the end condition of the loop. */
if (!altname) {
plog(LLV_ERROR, LOCATION, NULL,
"no proper SubjectAltName.\n");
"no proper subjectAltName.\n");
return ISAKMP_NTYPE_INVALID_CERTIFICATE;
}

Expand All @@ -1546,7 +1546,7 @@ oakley_check_certid(iph1)
error = getaddrinfo(altname, NULL, &hints, &res);
if (error != 0) {
plog(LLV_ERROR, LOCATION, NULL,
"Invalid SubjectAltName.\n");
"no proper subjectAltName.\n");
free(altname);
return ISAKMP_NTYPE_INVALID_CERTIFICATE;
}
Expand Down Expand Up @@ -1580,14 +1580,14 @@ oakley_check_certid(iph1)
if (eay_get_x509subjectaltname(&iph1->cert_p->cert,
&altname, &type, pos) != 0){
plog(LLV_ERROR, LOCATION, NULL,
"Invalid SubjectAltName.\n");
"failed to get subjectAltName\n");
return ISAKMP_NTYPE_INVALID_CERTIFICATE;
}

/* it's the end condition of the loop. */
if (!altname) {
plog(LLV_ERROR, LOCATION, NULL,
"no proper SubjectAltName.\n");
"no proper subjectAltName.\n");
return ISAKMP_NTYPE_INVALID_CERTIFICATE;
}

Expand Down

0 comments on commit c49231f

Please sign in to comment.