• Home
  • Raw
  • Download

Lines Matching refs:ccp

676   const char * ccp;  in Curl_parseX509()  local
718 ccp = Curl_getASN1Element(&cert->notBefore, elem.beg, elem.end); in Curl_parseX509()
719 Curl_getASN1Element(&cert->notAfter, ccp, elem.end); in Curl_parseX509()
724 ccp = Curl_getASN1Element(&cert->subjectPublicKeyAlgorithm, in Curl_parseX509()
727 Curl_getASN1Element(&cert->subjectPublicKey, ccp, in Curl_parseX509()
875 const char * ccp; in Curl_extract_certinfo() local
894 ccp = Curl_DNtostr(&cert.subject); in Curl_extract_certinfo()
895 if(!ccp) in Curl_extract_certinfo()
898 Curl_ssl_push_certinfo(data, certnum, "Subject", ccp); in Curl_extract_certinfo()
900 infof(data, "%2d Subject: %s\n", certnum, ccp); in Curl_extract_certinfo()
901 free((char *) ccp); in Curl_extract_certinfo()
904 ccp = Curl_DNtostr(&cert.issuer); in Curl_extract_certinfo()
905 if(!ccp) in Curl_extract_certinfo()
908 Curl_ssl_push_certinfo(data, certnum, "Issuer", ccp); in Curl_extract_certinfo()
910 infof(data, " Issuer: %s\n", ccp); in Curl_extract_certinfo()
911 free((char *) ccp); in Curl_extract_certinfo()
915 for(ccp = cert.version.beg; ccp < cert.version.end; ccp++) in Curl_extract_certinfo()
916 version = (version << 8) | *(const unsigned char *) ccp; in Curl_extract_certinfo()
918 ccp = curl_maprintf("%lx", version); in Curl_extract_certinfo()
919 if(!ccp) in Curl_extract_certinfo()
921 Curl_ssl_push_certinfo(data, certnum, "Version", ccp); in Curl_extract_certinfo()
922 free((char *) ccp); in Curl_extract_certinfo()
928 ccp = Curl_ASN1tostr(&cert.serialNumber, 0); in Curl_extract_certinfo()
929 if(!ccp) in Curl_extract_certinfo()
932 Curl_ssl_push_certinfo(data, certnum, "Serial Number", ccp); in Curl_extract_certinfo()
934 infof(data, " Serial Number: %s\n", ccp); in Curl_extract_certinfo()
935 free((char *) ccp); in Curl_extract_certinfo()
938 ccp = dumpAlgo(&param, cert.signatureAlgorithm.beg, in Curl_extract_certinfo()
940 if(!ccp) in Curl_extract_certinfo()
943 Curl_ssl_push_certinfo(data, certnum, "Signature Algorithm", ccp); in Curl_extract_certinfo()
945 infof(data, " Signature Algorithm: %s\n", ccp); in Curl_extract_certinfo()
946 free((char *) ccp); in Curl_extract_certinfo()
949 ccp = Curl_ASN1tostr(&cert.notBefore, 0); in Curl_extract_certinfo()
950 if(!ccp) in Curl_extract_certinfo()
953 Curl_ssl_push_certinfo(data, certnum, "Start Date", ccp); in Curl_extract_certinfo()
955 infof(data, " Start Date: %s\n", ccp); in Curl_extract_certinfo()
956 free((char *) ccp); in Curl_extract_certinfo()
959 ccp = Curl_ASN1tostr(&cert.notAfter, 0); in Curl_extract_certinfo()
960 if(!ccp) in Curl_extract_certinfo()
963 Curl_ssl_push_certinfo(data, certnum, "Expire Date", ccp); in Curl_extract_certinfo()
965 infof(data, " Expire Date: %s\n", ccp); in Curl_extract_certinfo()
966 free((char *) ccp); in Curl_extract_certinfo()
969 ccp = dumpAlgo(&param, cert.subjectPublicKeyAlgorithm.beg, in Curl_extract_certinfo()
971 if(!ccp) in Curl_extract_certinfo()
974 Curl_ssl_push_certinfo(data, certnum, "Public Key Algorithm", ccp); in Curl_extract_certinfo()
976 infof(data, " Public Key Algorithm: %s\n", ccp); in Curl_extract_certinfo()
977 do_pubkey(data, certnum, ccp, &param, &cert.subjectPublicKey); in Curl_extract_certinfo()
978 free((char *) ccp); in Curl_extract_certinfo()
983 ccp = Curl_ASN1tostr(&cert.signature, 0); in Curl_extract_certinfo()
984 if(!ccp) in Curl_extract_certinfo()
987 Curl_ssl_push_certinfo(data, certnum, "Signature", ccp); in Curl_extract_certinfo()
989 infof(data, " Signature: %s\n", ccp); in Curl_extract_certinfo()
990 free((char *) ccp); in Curl_extract_certinfo()
1035 const char * ccp; in checkOID() local
1042 ccp = Curl_getASN1Element(&e, beg, end); in checkOID()
1043 if(!ccp || e.tag != CURL_ASN1_OBJECT_IDENTIFIER) in checkOID()
1052 return matched? ccp: (const char *) NULL; in checkOID()