Lines Matching refs:store

268 static CURLcode bool2str(struct dynbuf *store,  in bool2str()  argument
273 return Curl_dyn_add(store, *beg ? "TRUE": "FALSE"); in bool2str()
281 static CURLcode octet2str(struct dynbuf *store, in octet2str() argument
287 result = Curl_dyn_addf(store, "%02x:", (unsigned char) *beg++); in octet2str()
292 static CURLcode bit2str(struct dynbuf *store, in bit2str() argument
299 return octet2str(store, beg, end); in bit2str()
307 static CURLcode int2str(struct dynbuf *store, in int2str() argument
317 return octet2str(store, beg, end); in int2str()
326 return Curl_dyn_addf(store, "%s%x", val >= 10 ? "0x" : "", val); in int2str()
419 static CURLcode encodeOID(struct dynbuf *store, in encodeOID() argument
431 result = Curl_dyn_addf(store, "%u.%u", x, y); in encodeOID()
444 result = Curl_dyn_addf(store, ".%u", x); in encodeOID()
455 static CURLcode OID2str(struct dynbuf *store, in OID2str() argument
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()
480 static CURLcode GTime2str(struct dynbuf *store, in GTime2str() argument
550 return Curl_dyn_addf(store, in GTime2str()
560 CURLcode Curl_x509_GTime2str(struct dynbuf *store, in Curl_x509_GTime2str() argument
563 return GTime2str(store, beg, end); in Curl_x509_GTime2str()
572 static CURLcode UTime2str(struct dynbuf *store, in UTime2str() argument
604 return Curl_dyn_addf(store, "%u%.2s-%.2s-%.2s %.2s:%.2s:%.2s %.*s", in UTime2str()
615 static CURLcode ASN1tostr(struct dynbuf *store, in ASN1tostr() argument
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()
671 static CURLcode encodeDN(struct dynbuf *store, struct Curl_asn1Element *dn) in encodeDN() argument
725 result = Curl_dyn_addn(store, "/", 1); in encodeDN()
727 result = Curl_dyn_addn(store, ", ", 2); in encodeDN()
733 result = Curl_dyn_add(store, str); in encodeDN()
738 result = Curl_dyn_addn(store, "=", 1); in encodeDN()
743 result = ASN1tostr(store, &value, 0); in encodeDN()
882 static CURLcode dumpAlgo(struct dynbuf *store, in dumpAlgo() argument
901 return OID2str(store, oid.beg, oid.end, TRUE); in dumpAlgo()
1067 static CURLcode DNtostr(struct dynbuf *store, in DNtostr() argument
1070 return encodeDN(store, dn); in DNtostr()