* free-packet.c (copy_secret_key): Fixed memory leak when D is not
[gnupg.git] / checks / genkey1024.test
1 #!/bin/sh
2
3 . $srcdir/defs.inc || exit 3
4
5 ../g10/gpg --quiet --batch --quick-random --homedir . --gen-key <<EOF
6 Key-Type: DSA
7 Key-Length: 1024
8 Subkey-Type: ELG-E
9 Subkey-Length: 1024
10 Name-Real: Harry H.
11 Name-Comment: test key 
12 Name-Email: hh@@ddorf.de
13 Expire-Date: 1
14 Passphrase: abc
15 %commit
16 EOF
17
18 if have_pubkey_algo "RSA"; then
19 ../g10/gpg --quiet --batch --quick-random --homedir . --gen-key <<EOF
20 Key-Type: RSA
21 Key-Length: 1024
22 Key-Usage: sign,encrypt
23 Name-Real: Harry A.
24 Name-Comment: RSA test key 
25 Name-Email: hh@@ddorf.de
26 Expire-Date: 2
27 Passphrase: abc
28 %commit
29 EOF
30 fi