There is no ASN1_TIME_dup, so switch M_ASN1_TIME_dup to ASN1_STRING_dup as upstream does. Switch M_ASN1_TIME_free to ASN1_TIME_free, also matching upstream. This is a no-op, but less obviously so: ASN1_TIME is an MSTRING defined in a_time.c. This defines an MSTRING ASN1_ITEM. The new/free functions are then generated with IMPLEMENT_ASN1_FUNCTIONS, which walks the ASN1_ITEM. ASN1_TIME_free then goes through table-based free function, eventually running ASN1_primitive_free, which calls ASN1_STRING_free on MSTRINGs. Change-Id: I1765848a5301ecceeb74f91457351c969b741bb1 Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/44046 Reviewed-by: Adam Langley <agl@google.com>chromium-5359
parent
c6ffcde8cd
commit
c509ee3fa2
2 changed files with 10 additions and 10 deletions
Loading…
Reference in new issue