Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
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
Additional deallocation fixes.
parent
dc214c3a
Changes
3
Hide whitespace changes
Inline
Side-by-side
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
...
...
@@ -253,11 +253,13 @@ main(int argc, char **argv)
}
write_bignum
(
stdout
,
x
);
mpz_clear
(
x
);
if
(
!
process_file
(
&
ctx
,
stdin
,
stdout
))
return
EXIT_FAILURE
;
rsa_public_key_clear
(
&
key
);
return
EXIT_SUCCESS
;
...
...
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
Supports
Markdown
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