Changeset 105124 in vbox for trunk/src/VBox/Runtime/common/crypto
- Timestamp:
- Jul 3, 2024 5:50:46 PM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/crypto/x509-create-sign.cpp
r104757 r105124 62 62 63 63 RTDECL(int) RTCrX509Certificate_GenerateSelfSignedRsa(RTDIGESTTYPE enmDigestType, uint32_t cBits, uint32_t cSecsValidFor, 64 uint32_t fKeyUsage, uint64_t fExtKeyUsage, void *pvSubjectTodo,64 uint32_t fKeyUsage, uint64_t fExtKeyUsage, const char *pvSubject, 65 65 const char *pszCertFile, const char *pszPrivateKeyFile, PRTERRINFO pErrInfo) 66 66 { … … 68 68 AssertReturn(!fKeyUsage, VERR_NOT_IMPLEMENTED); 69 69 AssertReturn(!fExtKeyUsage, VERR_NOT_IMPLEMENTED); 70 AssertReturn(pvSubjectTodo == NULL, VERR_NOT_IMPLEMENTED);71 70 72 71 /* … … 159 158 /* Make it self signed: */ 160 159 X509_NAME *pX509Name = X509_get_subject_name(pNewCert); 160 rcOssl = X509_NAME_add_entry_by_txt(pX509Name, "CN", MBSTRING_ASC, (unsigned char *) pvSubject, -1, -1, 0); 161 AssertStmt(rcOssl > 0, rc = RTErrInfoSet(pErrInfo, VERR_GENERAL_FAILURE, "X509_NAME_add_entry_by_txt failed")); 161 162 rcOssl = X509_set_issuer_name(pNewCert, pX509Name); 162 163 AssertStmt(rcOssl > 0, rc = RTErrInfoSet(pErrInfo, VERR_GENERAL_FAILURE, "X509_set_issuer_name failed"));
Note:
See TracChangeset
for help on using the changeset viewer.