diff options
Diffstat (limited to 'src/lib/tls/x509_nss.c')
-rw-r--r-- | src/lib/tls/x509_nss.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/tls/x509_nss.c b/src/lib/tls/x509_nss.c index 5bb7940c90..a0a9c559cf 100644 --- a/src/lib/tls/x509_nss.c +++ b/src/lib/tls/x509_nss.c @@ -114,11 +114,19 @@ tor_tls_create_certificate_internal(crypto_pk_t *rsa, if (!tmp) goto err; +#if 0 s = SEC_DerSignDataWithAlgorithmID(cert->arena, &signed_der, der.data, der.len, (SECKEYPrivateKey *)signing_key,//const &cert->signature); +#else + s = SEC_DerSignData(cert->arena, + &signed_der, + der.data, der.len, + (SECKEYPrivateKey *)signing_key,//const + SEC_OID_PKCS1_SHA256_WITH_RSA_ENCRYPTION); +#endif if (s != SECSuccess) goto err; |