Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Brian Smith
nettle
Commits
15a4d92d
Commit
15a4d92d
authored
Sep 19, 2012
by
Tim Ruehsen
Committed by
Niels Möller
Sep 19, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Additional deallocation fixes.
parent
dc214c3a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
+14
-2
ChangeLog
ChangeLog
+4
-0
examples/rsa-encrypt.c
examples/rsa-encrypt.c
+4
-2
examples/rsa-keygen.c
examples/rsa-keygen.c
+6
-0
No files found.
ChangeLog
View file @
15a4d92d
2012-09-19 Niels Möller <nisse@lysator.liu.se>
From Tim Rühsen:
* examples/rsa-encrypt.c (main): Added missing mpz_clear.
* examples/rsa-keygen.c (main): Added missing deallocation.
* testsuite/meta-hash-test.c (test_main): Validate
NETTLE_MAX_HASH_DIGEST_SIZE.
...
...
examples/rsa-encrypt.c
View file @
15a4d92d
...
...
@@ -254,6 +254,8 @@ main(int argc, char **argv)
write_bignum
(
stdout
,
x
);
mpz_clear
(
x
);
if
(
!
process_file
(
&
ctx
,
stdin
,
stdout
))
return
EXIT_FAILURE
;
...
...
examples/rsa-keygen.c
View file @
15a4d92d
...
...
@@ -160,5 +160,11 @@ main(int argc, char **argv)
return
EXIT_FAILURE
;
}
nettle_buffer_clear
(
&
priv_buffer
);
nettle_buffer_clear
(
&
pub_buffer
);
rsa_public_key_clear
(
&
pub
);
rsa_private_key_clear
(
&
priv
);
free
(
pub_name
);
return
EXIT_SUCCESS
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment