diff options
| author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-02-28 01:23:11 +0100 |
|---|---|---|
| committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-02-28 01:23:11 +0100 |
| commit | dd076567a41ad6600b1f332f473567df01083f07 (patch) | |
| tree | 0bf439d3fa05f638c253b33491d9ebc52be88875 /lib | |
| parent | ff5ac0c5cb11cf2770a44157107abff8536a0edc (diff) | |
| download | plan9front-dd076567a41ad6600b1f332f473567df01083f07.tar.xz | |
libsec: improve thumbprint code
1) handle errors when loading thumbprint file.
initThumbprints() now returns nil and sets errstr
on error. a syntax error in a thumbprint file
should be reported instead of silently ignored!
(have to check users)
2) fix memory leak in initThumbprints(); we have to use
freeThumbprints() instead of free to release crltab.
3) use the actual head entries for thumbprint
storage in the thumbprints array. most thumbprint
files are rather sparse.
4) remove private emalloc() function. we shouldnt
just exit the calling process on allocation error,
instead handle error properly. this is a library!
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions
