mirror of
https://github.com/Icinga/icinga2.git
synced 2025-09-23 17:57:54 +02:00
[TEST] MD5 fixes unit test?
This commit is contained in:
parent
8b38c32eb9
commit
e6564486dd
@ -38,7 +38,7 @@ static X509* MakeCert(char* issuer, EVP_PKEY* signer, char* subject, EVP_PKEY* p
|
|||||||
setTimes(X509_get_notBefore(cert), X509_get_notAfter(cert));
|
setTimes(X509_get_notBefore(cert), X509_get_notAfter(cert));
|
||||||
X509_NAME_add_entry_by_NID(X509_get_subject_name(cert), NID_commonName, MBSTRING_ASC, (unsigned char*)subject, -1, -1, 0);
|
X509_NAME_add_entry_by_NID(X509_get_subject_name(cert), NID_commonName, MBSTRING_ASC, (unsigned char*)subject, -1, -1, 0);
|
||||||
X509_set_pubkey(cert, pubkey);
|
X509_set_pubkey(cert, pubkey);
|
||||||
BOOST_REQUIRE(X509_sign(cert, signer, EVP_sha1()));
|
BOOST_REQUIRE(X509_sign(cert, signer, EVP_md5()));
|
||||||
|
|
||||||
return cert;
|
return cert;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user