Lines Matching refs:CertUtilsError
54 std::variant<CertUtilsError, X509_NAME_Ptr>
60 return CertUtilsError::MemoryAllocation; in makeCommonName()
67 return CertUtilsError::MemoryAllocation; in makeCommonName()
72 return CertUtilsError::BoringSsl; in makeCommonName()
77 std::variant<CertUtilsError, std::vector<uint8_t>> makeKeyId(const X509* cert) { in makeKeyId()
81 return CertUtilsError::Encoding; in makeKeyId()
86 std::variant<CertUtilsError, AUTHORITY_KEYID_Ptr>
90 return CertUtilsError::MemoryAllocation; in makeAuthorityKeyExtension()
95 return CertUtilsError::MemoryAllocation; in makeAuthorityKeyExtension()
99 return CertUtilsError::BoringSsl; in makeAuthorityKeyExtension()
105 std::variant<CertUtilsError, ASN1_OCTET_STRING_Ptr>
111 return CertUtilsError::BoringSsl; in makeSubjectKeyExtension()
117 std::variant<CertUtilsError, BASIC_CONSTRAINTS_Ptr>
122 return CertUtilsError::MemoryAllocation; in makeBasicConstraintsExtension()
130 return CertUtilsError::BoringSsl; in makeBasicConstraintsExtension()
137 std::variant<CertUtilsError, ASN1_BIT_STRING_Ptr>
142 return CertUtilsError::BoringSsl; in makeKeyUsageExtension()
147 return CertUtilsError::BoringSsl; in makeKeyUsageExtension()
153 return CertUtilsError::BoringSsl; in makeKeyUsageExtension()
160 return CertUtilsError::BoringSsl; in makeKeyUsageExtension()
166 return CertUtilsError::BoringSsl; in makeKeyUsageExtension()
215 std::variant<CertUtilsError, X509_Ptr>
224 return CertUtilsError::BoringSsl; in makeCertRump()
229 return CertUtilsError::BoringSsl; in makeCertRump()
236 return CertUtilsError::MemoryAllocation; in makeCertRump()
241 return CertUtilsError::MemoryAllocation; in makeCertRump()
250 return CertUtilsError::BoringSsl; in makeCertRump()
256 return CertUtilsError::BoringSsl; in makeCertRump()
259 return std::get<CertUtilsError>(subjectName); in makeCertRump()
264 return CertUtilsError::TimeError; in makeCertRump()
270 return CertUtilsError::BoringSsl; in makeCertRump()
275 return CertUtilsError::TimeError; in makeCertRump()
281 return CertUtilsError::BoringSsl; in makeCertRump()
287 std::variant<CertUtilsError, X509_Ptr>
298 if (auto error = std::get_if<CertUtilsError>(&certificateV)) { in makeCert()
305 return CertUtilsError::BoringSsl; in makeCert()
312 if (auto error = std::get_if<CertUtilsError>(&key_usage_extensionV)) { in makeCert()
319 return CertUtilsError::BoringSsl; in makeCert()
327 if (auto error = std::get_if<CertUtilsError>(&basic_constraints_extensionV)) { in makeCert()
335 return CertUtilsError::BoringSsl; in makeCert()
342 if (auto error = std::get_if<CertUtilsError>(&keyidV)) { in makeCert()
348 if (auto error = std::get_if<CertUtilsError>(&subject_key_extensionV)) { in makeCert()
356 return CertUtilsError::BoringSsl; in makeCert()
363 CertUtilsError setIssuer(X509* cert, const X509* signingCert, bool addAuthKeyExt) { in setIssuer()
370 return CertUtilsError::BoringSsl; in setIssuer()
373 return CertUtilsError::Encoding; in setIssuer()
379 if (auto error = std::get_if<CertUtilsError>(&keyidV)) { in setIssuer()
385 if (auto error = std::get_if<CertUtilsError>(&auth_key_extensionV)) { in setIssuer()
391 return CertUtilsError::BoringSsl; in setIssuer()
394 return CertUtilsError::Ok; in setIssuer()
399 CertUtilsError signCert(X509* certificate, EVP_PKEY* signing_key) { in signCert()
402 return CertUtilsError::UnexpectedNullPointer; in signCert()
406 return CertUtilsError::BoringSsl; in signCert()
409 return CertUtilsError::Ok; in signCert()
412 std::variant<CertUtilsError, std::vector<uint8_t>> encodeCert(X509* certificate) { in encodeCert()
415 return CertUtilsError::BoringSsl; in encodeCert()
422 return CertUtilsError::BoringSsl; in encodeCert()
427 CertUtilsError setRsaDigestAlgorField(X509_ALGOR** alg_ptr, const EVP_MD* digest) { in setRsaDigestAlgorField()
429 return CertUtilsError::UnexpectedNullPointer; in setRsaDigestAlgorField()
433 return CertUtilsError::MemoryAllocation; in setRsaDigestAlgorField()
436 return CertUtilsError::Ok; in setRsaDigestAlgorField()
439 CertUtilsError setPssMaskGeneratorField(X509_ALGOR** alg_ptr, const EVP_MD* digest) { in setPssMaskGeneratorField()
448 return CertUtilsError::Encoding; in setPssMaskGeneratorField()
454 return CertUtilsError::MemoryAllocation; in setPssMaskGeneratorField()
459 return CertUtilsError::Ok; in setPssMaskGeneratorField()
462 static CertUtilsError setSaltLength(RSA_PSS_PARAMS* pss_params, unsigned length) { in setSaltLength()
465 return CertUtilsError::MemoryAllocation; in setSaltLength()
468 return CertUtilsError::Encoding; in setSaltLength()
470 return CertUtilsError::Ok; in setSaltLength()
473 std::variant<CertUtilsError, ASN1_STRING_Ptr> buildRsaPssParameter(Digest digest) { in buildRsaPssParameter()
476 return CertUtilsError::MemoryAllocation; in buildRsaPssParameter()
497 return CertUtilsError::InvalidArgument; in buildRsaPssParameter()
514 return CertUtilsError::BoringSsl; in buildRsaPssParameter()
520 CertUtilsError makeAndSetAlgo(X509_ALGOR* algo_field, Algo algo, Padding padding, Digest digest) { in makeAndSetAlgo()
522 return CertUtilsError::UnexpectedNullPointer; in makeAndSetAlgo()
546 return CertUtilsError::InvalidArgument; in makeAndSetAlgo()
570 return CertUtilsError::InvalidArgument; in makeAndSetAlgo()
580 return std::get<CertUtilsError>(v); in makeAndSetAlgo()
585 return CertUtilsError::InvalidArgument; in makeAndSetAlgo()
589 return CertUtilsError::InvalidArgument; in makeAndSetAlgo()
593 return CertUtilsError::Encoding; in makeAndSetAlgo()
597 return CertUtilsError::Ok; in makeAndSetAlgo()
601 CertUtilsError signCertWith(X509* certificate, in signCertWith()
614 return CertUtilsError::Encoding; in signCertWith()
620 return CertUtilsError::SignatureFailed; in signCertWith()
624 return CertUtilsError::BoringSsl; in signCertWith()
630 return CertUtilsError::Ok; in signCertWith()