diff options
Diffstat (limited to 'key.c')
-rw-r--r-- | key.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: key.c,v 1.95 2010/11/10 01:33:07 djm Exp $ */ | 1 | /* $OpenBSD: key.c,v 1.96 2011/02/04 00:44:21 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * read_bignum(): | 3 | * read_bignum(): |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -1890,10 +1890,9 @@ key_certify(Key *k, Key *ca) | |||
1890 | buffer_put_cstring(&k->cert->certblob, key_ssh_name(k)); | 1890 | buffer_put_cstring(&k->cert->certblob, key_ssh_name(k)); |
1891 | 1891 | ||
1892 | /* -v01 certs put nonce first */ | 1892 | /* -v01 certs put nonce first */ |
1893 | if (!key_cert_is_legacy(k)) { | 1893 | arc4random_buf(&nonce, sizeof(nonce)); |
1894 | arc4random_buf(&nonce, sizeof(nonce)); | 1894 | if (!key_cert_is_legacy(k)) |
1895 | buffer_put_string(&k->cert->certblob, nonce, sizeof(nonce)); | 1895 | buffer_put_string(&k->cert->certblob, nonce, sizeof(nonce)); |
1896 | } | ||
1897 | 1896 | ||
1898 | switch (k->type) { | 1897 | switch (k->type) { |
1899 | case KEY_DSA_CERT_V00: | 1898 | case KEY_DSA_CERT_V00: |