~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Verify RSA keys created by rsa2_openssh_createkey.
[sgt/putty]
/
sshrsa.c
diff --git
a/sshrsa.c
b/sshrsa.c
index
11c488e
..
0785364
100644
(file)
--- a/
sshrsa.c
+++ b/
sshrsa.c
@@
-711,6
+711,11
@@
static void *rsa2_openssh_createkey(unsigned char **blob, int *len)
return NULL;
}
+ if (!rsa_verify(rsa)) {
+ rsa2_freekey(rsa);
+ return NULL;
+ }
+
return rsa;
}