• Home
  • Raw
  • Download

Lines Matching refs:ccp

711   const char *ccp;  in Curl_parseX509()  local
764 ccp = getASN1Element(&cert->notBefore, elem.beg, elem.end); in Curl_parseX509()
765 if(!ccp) in Curl_parseX509()
767 if(!getASN1Element(&cert->notAfter, ccp, elem.end)) in Curl_parseX509()
777 ccp = getASN1Element(&cert->subjectPublicKeyAlgorithm, in Curl_parseX509()
780 if(!ccp) in Curl_parseX509()
782 if(!getASN1Element(&cert->subjectPublicKey, ccp, in Curl_parseX509()
956 const char *ccp; in Curl_extract_certinfo() local
976 ccp = DNtostr(&cert.subject); in Curl_extract_certinfo()
977 if(!ccp) in Curl_extract_certinfo()
980 Curl_ssl_push_certinfo(data, certnum, "Subject", ccp); in Curl_extract_certinfo()
982 infof(data, "%2d Subject: %s\n", certnum, ccp); in Curl_extract_certinfo()
983 free((char *) ccp); in Curl_extract_certinfo()
986 ccp = DNtostr(&cert.issuer); in Curl_extract_certinfo()
987 if(!ccp) in Curl_extract_certinfo()
990 Curl_ssl_push_certinfo(data, certnum, "Issuer", ccp); in Curl_extract_certinfo()
992 infof(data, " Issuer: %s\n", ccp); in Curl_extract_certinfo()
993 free((char *) ccp); in Curl_extract_certinfo()
997 for(ccp = cert.version.beg; ccp < cert.version.end; ccp++) in Curl_extract_certinfo()
998 version = (version << 8) | *(const unsigned char *) ccp; in Curl_extract_certinfo()
1000 ccp = curl_maprintf("%lx", version); in Curl_extract_certinfo()
1001 if(!ccp) in Curl_extract_certinfo()
1003 Curl_ssl_push_certinfo(data, certnum, "Version", ccp); in Curl_extract_certinfo()
1004 free((char *) ccp); in Curl_extract_certinfo()
1010 ccp = ASN1tostr(&cert.serialNumber, 0); in Curl_extract_certinfo()
1011 if(!ccp) in Curl_extract_certinfo()
1014 Curl_ssl_push_certinfo(data, certnum, "Serial Number", ccp); in Curl_extract_certinfo()
1016 infof(data, " Serial Number: %s\n", ccp); in Curl_extract_certinfo()
1017 free((char *) ccp); in Curl_extract_certinfo()
1020 ccp = dumpAlgo(&param, cert.signatureAlgorithm.beg, in Curl_extract_certinfo()
1022 if(!ccp) in Curl_extract_certinfo()
1025 Curl_ssl_push_certinfo(data, certnum, "Signature Algorithm", ccp); in Curl_extract_certinfo()
1027 infof(data, " Signature Algorithm: %s\n", ccp); in Curl_extract_certinfo()
1028 free((char *) ccp); in Curl_extract_certinfo()
1031 ccp = ASN1tostr(&cert.notBefore, 0); in Curl_extract_certinfo()
1032 if(!ccp) in Curl_extract_certinfo()
1035 Curl_ssl_push_certinfo(data, certnum, "Start Date", ccp); in Curl_extract_certinfo()
1037 infof(data, " Start Date: %s\n", ccp); in Curl_extract_certinfo()
1038 free((char *) ccp); in Curl_extract_certinfo()
1041 ccp = ASN1tostr(&cert.notAfter, 0); in Curl_extract_certinfo()
1042 if(!ccp) in Curl_extract_certinfo()
1045 Curl_ssl_push_certinfo(data, certnum, "Expire Date", ccp); in Curl_extract_certinfo()
1047 infof(data, " Expire Date: %s\n", ccp); in Curl_extract_certinfo()
1048 free((char *) ccp); in Curl_extract_certinfo()
1051 ccp = dumpAlgo(&param, cert.subjectPublicKeyAlgorithm.beg, in Curl_extract_certinfo()
1053 if(!ccp) in Curl_extract_certinfo()
1056 Curl_ssl_push_certinfo(data, certnum, "Public Key Algorithm", ccp); in Curl_extract_certinfo()
1058 infof(data, " Public Key Algorithm: %s\n", ccp); in Curl_extract_certinfo()
1059 do_pubkey(data, certnum, ccp, &param, &cert.subjectPublicKey); in Curl_extract_certinfo()
1060 free((char *) ccp); in Curl_extract_certinfo()
1063 ccp = ASN1tostr(&cert.signature, 0); in Curl_extract_certinfo()
1064 if(!ccp) in Curl_extract_certinfo()
1067 Curl_ssl_push_certinfo(data, certnum, "Signature", ccp); in Curl_extract_certinfo()
1069 infof(data, " Signature: %s\n", ccp); in Curl_extract_certinfo()
1070 free((char *) ccp); in Curl_extract_certinfo()
1115 const char *ccp; in checkOID() local
1122 ccp = getASN1Element(&e, beg, end); in checkOID()
1123 if(!ccp || e.tag != CURL_ASN1_OBJECT_IDENTIFIER) in checkOID()
1132 return matched? ccp: NULL; in checkOID()