projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added Pageant, a first-attempt PuTTY authentication agent
[u/mdw/putty]
/
sshrsa.c
diff --git
a/sshrsa.c
b/sshrsa.c
index
bd92c7b
..
e44dce8
100644
(file)
--- a/
sshrsa.c
+++ b/
sshrsa.c
@@
-156,6
+156,13
@@
void rsastr_fmt(char *str, struct RSAKey *key) {
str[len] = '\0';
}
str[len] = '\0';
}
+void freersakey(struct RSAKey *key) {
+ if (key->modulus) freebn(key->modulus);
+ if (key->exponent) freebn(key->exponent);
+ if (key->private_exponent) freebn(key->private_exponent);
+ if (key->comment) free(key->comment);
+}
+
#ifdef TESTMODE
#ifndef NODDY
#ifdef TESTMODE
#ifndef NODDY