Lines Matching refs:result

284   CURLcode result = CURLE_OK;  in octet2str()  local
286 while(!result && beg < end) in octet2str()
287 result = Curl_dyn_addf(store, "%02x:", (unsigned char) *beg++); in octet2str()
289 return result; in octet2str()
342 CURLcode result = CURLE_OK; in utf8asn1str() local
369 result = Curl_dyn_addn(to, from, inlength); in utf8asn1str()
372 while(!result && (from < end)) { in utf8asn1str()
408 result = Curl_dyn_addn(to, buf, charsize); in utf8asn1str()
411 return result; in utf8asn1str()
424 CURLcode result = CURLE_OK; in encodeOID() local
431 result = Curl_dyn_addf(store, "%u.%u", x, y); in encodeOID()
432 if(result) in encodeOID()
433 return result; in encodeOID()
444 result = Curl_dyn_addf(store, ".%u", x); in encodeOID()
446 return result; in encodeOID()
458 CURLcode result = CURLE_OK; in OID2str() local
463 result = encodeOID(&buf, beg, end); in OID2str()
465 if(!result) { in OID2str()
468 result = Curl_dyn_add(store, op->textoid); in OID2str()
470 result = Curl_dyn_add(store, Curl_dyn_ptr(&buf)); in OID2str()
475 result = encodeOID(store, beg, end); in OID2str()
477 return result; in OID2str()
618 CURLcode result = CURLE_BAD_FUNCTION_ARGUMENT; in ASN1tostr() local
620 return result; /* No conversion of structured elements. */ in ASN1tostr()
627 result = bool2str(store, elem->beg, elem->end); in ASN1tostr()
631 result = int2str(store, elem->beg, elem->end); in ASN1tostr()
634 result = bit2str(store, elem->beg, elem->end); in ASN1tostr()
637 result = octet2str(store, elem->beg, elem->end); in ASN1tostr()
640 result = Curl_dyn_addn(store, "", 1); in ASN1tostr()
643 result = OID2str(store, elem->beg, elem->end, TRUE); in ASN1tostr()
646 result = UTime2str(store, elem->beg, elem->end); in ASN1tostr()
649 result = GTime2str(store, elem->beg, elem->end); in ASN1tostr()
659 result = utf8asn1str(store, type, elem->beg, elem->end); in ASN1tostr()
663 return result; in ASN1tostr()
681 CURLcode result = CURLE_OK; in encodeDN() local
689 result = CURLE_BAD_FUNCTION_ARGUMENT; in encodeDN()
695 result = CURLE_BAD_FUNCTION_ARGUMENT; in encodeDN()
700 result = CURLE_BAD_FUNCTION_ARGUMENT; in encodeDN()
704 result = CURLE_BAD_FUNCTION_ARGUMENT; in encodeDN()
708 result = ASN1tostr(&temp, &oid, 0); in encodeDN()
709 if(result) in encodeDN()
715 result = CURLE_BAD_FUNCTION_ARGUMENT; in encodeDN()
725 result = Curl_dyn_addn(store, "/", 1); in encodeDN()
727 result = Curl_dyn_addn(store, ", ", 2); in encodeDN()
728 if(result) in encodeDN()
733 result = Curl_dyn_add(store, str); in encodeDN()
734 if(result) in encodeDN()
738 result = Curl_dyn_addn(store, "=", 1); in encodeDN()
739 if(result) in encodeDN()
743 result = ASN1tostr(store, &value, 0); in encodeDN()
744 if(result) in encodeDN()
753 return result; in encodeDN()
932 CURLcode result = Curl_ssl_push_certinfo_len(data, certnum, label, in ssl_push_certinfo_dyn() local
935 if(!certnum && !result) in ssl_push_certinfo_dyn()
938 return result; in ssl_push_certinfo_dyn()
945 CURLcode result; in do_pubkey_field() local
952 result = ASN1tostr(&out, elem, 0); in do_pubkey_field()
953 if(!result) { in do_pubkey_field()
955 result = ssl_push_certinfo_dyn(data, certnum, label, &out); in do_pubkey_field()
958 return result; in do_pubkey_field()
1083 CURLcode result = CURLE_OK; in Curl_extract_certinfo() local
1100 result = DNtostr(&out, &cert.subject); in Curl_extract_certinfo()
1101 if(result) in Curl_extract_certinfo()
1104 result = ssl_push_certinfo_dyn(data, certnum, "Subject", &out); in Curl_extract_certinfo()
1105 if(result) in Curl_extract_certinfo()
1111 result = DNtostr(&out, &cert.issuer); in Curl_extract_certinfo()
1112 if(result) in Curl_extract_certinfo()
1115 result = ssl_push_certinfo_dyn(data, certnum, "Issuer", &out); in Curl_extract_certinfo()
1116 if(result) in Curl_extract_certinfo()
1126 result = Curl_dyn_addf(&out, "%x", version); in Curl_extract_certinfo()
1127 if(result) in Curl_extract_certinfo()
1129 result = ssl_push_certinfo_dyn(data, certnum, "Version", &out); in Curl_extract_certinfo()
1130 if(result) in Curl_extract_certinfo()
1136 result = ASN1tostr(&out, &cert.serialNumber, 0); in Curl_extract_certinfo()
1137 if(result) in Curl_extract_certinfo()
1140 result = ssl_push_certinfo_dyn(data, certnum, "Serial Number", &out); in Curl_extract_certinfo()
1141 if(result) in Curl_extract_certinfo()
1147 result = dumpAlgo(&out, &param, cert.signatureAlgorithm.beg, in Curl_extract_certinfo()
1149 if(result) in Curl_extract_certinfo()
1152 result = ssl_push_certinfo_dyn(data, certnum, "Signature Algorithm", in Curl_extract_certinfo()
1154 if(result) in Curl_extract_certinfo()
1160 result = ASN1tostr(&out, &cert.notBefore, 0); in Curl_extract_certinfo()
1161 if(result) in Curl_extract_certinfo()
1164 result = ssl_push_certinfo_dyn(data, certnum, "Start Date", &out); in Curl_extract_certinfo()
1165 if(result) in Curl_extract_certinfo()
1171 result = ASN1tostr(&out, &cert.notAfter, 0); in Curl_extract_certinfo()
1172 if(result) in Curl_extract_certinfo()
1175 result = ssl_push_certinfo_dyn(data, certnum, "Expire Date", &out); in Curl_extract_certinfo()
1176 if(result) in Curl_extract_certinfo()
1182 result = dumpAlgo(&out, &param, cert.subjectPublicKeyAlgorithm.beg, in Curl_extract_certinfo()
1184 if(result) in Curl_extract_certinfo()
1187 result = ssl_push_certinfo_dyn(data, certnum, "Public Key Algorithm", in Curl_extract_certinfo()
1189 if(result) in Curl_extract_certinfo()
1196 result = CURLE_OUT_OF_MEMORY; /* the most likely error */ in Curl_extract_certinfo()
1202 result = ASN1tostr(&out, &cert.signature, 0); in Curl_extract_certinfo()
1203 if(result) in Curl_extract_certinfo()
1206 result = ssl_push_certinfo_dyn(data, certnum, "Signature", &out); in Curl_extract_certinfo()
1207 if(result) in Curl_extract_certinfo()
1213 result = Curl_base64_encode(cert.certificate.beg, in Curl_extract_certinfo()
1216 if(result) in Curl_extract_certinfo()
1231 result = Curl_dyn_add(&out, "-----BEGIN CERTIFICATE-----\n"); in Curl_extract_certinfo()
1232 if(!result) { in Curl_extract_certinfo()
1235 while(!result && (j < clen)) { in Curl_extract_certinfo()
1237 result = Curl_dyn_addn(&out, &certptr[j], chunksize); in Curl_extract_certinfo()
1238 if(!result) in Curl_extract_certinfo()
1239 result = Curl_dyn_addn(&out, "\n", 1); in Curl_extract_certinfo()
1242 if(!result) in Curl_extract_certinfo()
1243 result = Curl_dyn_add(&out, "-----END CERTIFICATE-----\n"); in Curl_extract_certinfo()
1246 if(!result) in Curl_extract_certinfo()
1248 result = ssl_push_certinfo_dyn(data, certnum, "Cert", &out); in Curl_extract_certinfo()
1251 if(result) in Curl_extract_certinfo()
1254 return result; in Curl_extract_certinfo()