testing: X509 certificate structure needs to be initialized
commit33b5a54db6be5ec364c21b6a9030cd73aadc002a
authorMarcin Cieślak <saper@saper.info>
Fri, 11 May 2018 00:16:52 +0000 (11 00:16 +0000)
committerMarcin Cieślak <saper@saper.info>
Fri, 11 May 2018 01:43:23 +0000 (11 01:43 +0000)
tree1c8ac361f9f3a74e2d6d843605817eda40de7032
parent32de001e8385d0d808c31645ef45b193ba737f5c
testing: X509 certificate structure needs to be initialized

We alloc/free X.509 structures in three ways:

1) X509 structure allocated with X509_new() and X509_free()

2) Fake X509 structure allocated with fake_x509_malloc() and fake_x509_free()
   May contain valid pointers inside.

3) Empty X509 structure shell allocated with tor_malloc_zero() and
   freed with tor_free()
src/test/test_tortls.c