• Home
  • Raw
  • Download

Lines Matching refs:ccp

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