Lines Matching defs:ccp
710 const char *ccp;
763 ccp = getASN1Element(&cert->notBefore, elem.beg, elem.end);
764 if(!ccp)
766 if(!getASN1Element(&cert->notAfter, ccp, elem.end))
776 ccp = getASN1Element(&cert->subjectPublicKeyAlgorithm,
779 if(!ccp)
781 if(!getASN1Element(&cert->subjectPublicKey, ccp,
953 const char *ccp;
973 ccp = DNtostr(&cert.subject);
974 if(!ccp)
977 Curl_ssl_push_certinfo(data, certnum, "Subject", ccp);
979 infof(data, "%2d Subject: %s\n", certnum, ccp);
980 free((char *) ccp);
983 ccp = DNtostr(&cert.issuer);
984 if(!ccp)
987 Curl_ssl_push_certinfo(data, certnum, "Issuer", ccp);
989 infof(data, " Issuer: %s\n", ccp);
990 free((char *) ccp);
994 for(ccp = cert.version.beg; ccp < cert.version.end; ccp++)
995 version = (version << 8) | *(const unsigned char *) ccp;
997 ccp = curl_maprintf("%lx", version);
998 if(!ccp)
1000 Curl_ssl_push_certinfo(data, certnum, "Version", ccp);
1001 free((char *) ccp);
1007 ccp = ASN1tostr(&cert.serialNumber, 0);
1008 if(!ccp)
1011 Curl_ssl_push_certinfo(data, certnum, "Serial Number", ccp);
1013 infof(data, " Serial Number: %s\n", ccp);
1014 free((char *) ccp);
1017 ccp = dumpAlgo(¶m, cert.signatureAlgorithm.beg,
1019 if(!ccp)
1022 Curl_ssl_push_certinfo(data, certnum, "Signature Algorithm", ccp);
1024 infof(data, " Signature Algorithm: %s\n", ccp);
1025 free((char *) ccp);
1028 ccp = ASN1tostr(&cert.notBefore, 0);
1029 if(!ccp)
1032 Curl_ssl_push_certinfo(data, certnum, "Start Date", ccp);
1034 infof(data, " Start Date: %s\n", ccp);
1035 free((char *) ccp);
1038 ccp = ASN1tostr(&cert.notAfter, 0);
1039 if(!ccp)
1042 Curl_ssl_push_certinfo(data, certnum, "Expire Date", ccp);
1044 infof(data, " Expire Date: %s\n", ccp);
1045 free((char *) ccp);
1048 ccp = dumpAlgo(¶m, cert.subjectPublicKeyAlgorithm.beg,
1050 if(!ccp)
1053 Curl_ssl_push_certinfo(data, certnum, "Public Key Algorithm", ccp);
1055 infof(data, " Public Key Algorithm: %s\n", ccp);
1056 do_pubkey(data, certnum, ccp, ¶m, &cert.subjectPublicKey);
1057 free((char *) ccp);
1062 ccp = ASN1tostr(&cert.signature, 0);
1063 if(!ccp)
1066 Curl_ssl_push_certinfo(data, certnum, "Signature", ccp);
1068 infof(data, " Signature: %s\n", ccp);
1069 free((char *) ccp);
1114 const char *ccp;
1121 ccp = getASN1Element(&e, beg, end);
1122 if(!ccp || e.tag != CURL_ASN1_OBJECT_IDENTIFIER)
1131 return matched? ccp: NULL;