From: cc1.yim Date: Tue, 24 Sep 2013 07:05:50 +0000 (+0900) Subject: change error string X-Git-Tag: accepted/tizen/20130924.222314^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7b7585191ce737478b7cbe2541ba2aa2b2b64a75;p=platform%2Fupstream%2Fxmlsec1.git change error string Change-Id: Ia683bab4a158764fc674110f7f32cbe742684e62 Signed-off-by: cc1.yim --- diff --git a/include/xmlsec/keyinfo.h b/include/xmlsec/keyinfo.h index 19dcbb9..711195f 100644 --- a/include/xmlsec/keyinfo.h +++ b/include/xmlsec/keyinfo.h @@ -154,7 +154,14 @@ typedef enum { */ #define XMLSEC_KEYINFO_FLAGS_X509DATA_SKIP_STRICT_CHECKS 0x00004000 - +/** + * XMLSEC_KEYINFO_FLAGS_SKIP_VERIFY_CHAIN: + * + * If the flag is set then we wont stop document validation + * on certificate chain error. Instead of stopping validation + * we'll just set flag XMLSEC_KEYINFO_ERROR_FLAGS_BROKEN_CHAIN + * as flags2 value. + */ #define XMLSEC_KEYINFO_FLAGS_ALLOW_BROKEN_CHAIN 0x00008000 #define XMLSEC_KEYINFO_ERROR_FLAGS_BROKEN_CHAIN 0x00000001 diff --git a/src/io.c b/src/io.c index 77344c0..79ee3a6 100644 --- a/src/io.c +++ b/src/io.c @@ -424,7 +424,7 @@ xmlSecTransformInputURIOpen(xmlSecTransformPtr transform, const xmlChar *uri) { xmlSecErrorsSafeString(xmlSecTransformGetName(transform)), "opencallback", XMLSEC_ERRORS_R_IO_FAILED, - "uri=%s;errno=%d", + "uri=%s;error=%s", xmlSecErrorsSafeString(uri), strerror(errno)); return(-1); @@ -484,7 +484,7 @@ xmlSecTransformInputURIPopBin(xmlSecTransformPtr transform, xmlSecByte* data, xmlSecErrorsSafeString(xmlSecTransformGetName(transform)), "readcallback", XMLSEC_ERRORS_R_IO_FAILED, - "errno=%d", strerror(errno)); + "error=%s", strerror(errno)); return(-1); } (*dataSize) = ret;