diff options
author | lloyd <[email protected]> | 2011-12-28 16:40:19 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2011-12-28 16:40:19 +0000 |
commit | bff93678cf13da4ecca1851234578e671787a38b (patch) | |
tree | d46014fc0eaa677ea867a65fc4accb1f341bf13a /doc/examples | |
parent | d1324eb8283bf9adfbe5dca05be1ecbffba8a339 (diff) |
Additional bits for SSLv3 client auth
Diffstat (limited to 'doc/examples')
-rw-r--r-- | doc/examples/self_sig.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/examples/self_sig.cpp b/doc/examples/self_sig.cpp index 64b778b71..522fad677 100644 --- a/doc/examples/self_sig.cpp +++ b/doc/examples/self_sig.cpp @@ -35,7 +35,10 @@ int main(int argc, char* argv[]) { AutoSeeded_RNG rng; - RSA_PrivateKey key(rng, 2048); + //RSA_PrivateKey key(rng, 2048); + DL_Group group(rng, DL_Group::DSA_Kosherizer, 2048, 256); + + DSA_PrivateKey key(rng, group); std::ofstream priv_key("private.pem"); priv_key << PKCS8::PEM_encode(key, rng, argv[1]); |