Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Simplify extra_certs handling w.r.t. assign_privkey()
With the free_supporting_certs[] array, there's no need to pass extra_certs[] in to the GnuTLS 2 version of assign_privkey() just to let it remove the certs that it wants to steal. Instead, remove them as we *find* them and put them into the supporting_certs[] array, and mark them as "to be freed". By keeping the free_my_certs[] array, this also fixes a bug in the GnuTLS 2 code where we would end up freeing a cert which was obtained by gnutls_certificate_get_issuer(), which we are *supposed* to treat as being constant. Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
- Loading branch information
David Woodhouse
authored and
David Woodhouse
committed
Nov 15, 2013
1 parent
4737907
commit 04ccc26
Showing
2 changed files
with
26 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters