mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
r13385@catbus: nickm | 2007-06-13 14:14:47 -0400
In tor-gencert, write BEGIN SIGNATURE, not BEGIN_SIGNATURE. svn:r10585
This commit is contained in:
@@ -344,10 +344,10 @@ generate_certificate(void)
|
||||
(unsigned char*)signature,
|
||||
EVP_PKEY_get1_RSA(identity_key),
|
||||
RSA_PKCS1_PADDING);
|
||||
strlcat(buf, "-----BEGIN_SIGNATURE-----\n", sizeof(buf));
|
||||
strlcat(buf, "-----BEGIN SIGNATURE-----\n", sizeof(buf));
|
||||
signed_len = strlen(buf);
|
||||
base64_encode(buf+signed_len, sizeof(buf)-signed_len, signature, r);
|
||||
strlcat(buf, "-----END_SIGNATURE-----\n", sizeof(buf));
|
||||
strlcat(buf, "-----END SIGNATURE-----\n", sizeof(buf));
|
||||
|
||||
if (!(f = fopen(certificate_file, "w"))) {
|
||||
log_err(LD_GENERAL, "Couldn't open %s for writing: %s",
|
||||
|
||||
Reference in New Issue
Block a user