diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-04-30 18:46:14 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:05:26 -0500 |
commit | e0e8743baf6c34987d56c8b7166a7c928bbdd6a5 (patch) | |
tree | 09a7a5b65d5e28f6b8a3e518e3722bac939f0c98 /source4/lib/tls | |
parent | c4e622f4b753bfb25198a2be74bbcad6398d2b19 (diff) | |
download | samba-e0e8743baf6c34987d56c8b7166a7c928bbdd6a5.tar.gz samba-e0e8743baf6c34987d56c8b7166a7c928bbdd6a5.tar.bz2 samba-e0e8743baf6c34987d56c8b7166a7c928bbdd6a5.zip |
r15363: Fix dependencies for shared library
(This used to be commit f2ca71f1229f4c20296895116c09bacbd6a53b55)
Diffstat (limited to 'source4/lib/tls')
-rw-r--r-- | source4/lib/tls/tlscert.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/lib/tls/tlscert.c b/source4/lib/tls/tlscert.c index ab06f8617c..3956475ea0 100644 --- a/source4/lib/tls/tlscert.c +++ b/source4/lib/tls/tlscert.c @@ -30,6 +30,7 @@ #define UNIT_NAME "Samba - temporary autogenerated certificate" #define COMMON_NAME "Samba" #define LIFETIME 700*24*60*60 +#define DH_BITS 1024 /* auto-generate a set of self signed certificates @@ -67,11 +68,11 @@ void tls_cert_generate(TALLOC_CTX *mem_ctx, DEBUG(3,("Generating private key\n")); TLSCHECK(gnutls_x509_privkey_init(&key)); - TLSCHECK(gnutls_x509_privkey_generate(key, GNUTLS_PK_RSA, 1024, 0)); + TLSCHECK(gnutls_x509_privkey_generate(key, GNUTLS_PK_RSA, DH_BITS, 0)); DEBUG(3,("Generating CA private key\n")); TLSCHECK(gnutls_x509_privkey_init(&cakey)); - TLSCHECK(gnutls_x509_privkey_generate(cakey, GNUTLS_PK_RSA, 1024, 0)); + TLSCHECK(gnutls_x509_privkey_generate(cakey, GNUTLS_PK_RSA, DH_BITS, 0)); DEBUG(3,("Generating CA certificate\n")); TLSCHECK(gnutls_x509_crt_init(&cacrt)); |