cert-crypto: implement certificate expiration
commit8619e4ab8ebf44a451b9d567b8ac22183ce9f0f2
authorStefan Becker <chemobejk@gmail.com>
Wed, 27 Nov 2013 19:24:33 +0000 (27 21:24 +0200)
committerStefan Becker <chemobejk@gmail.com>
Wed, 27 Nov 2013 19:24:33 +0000 (27 21:24 +0200)
tree4fcf60aa106d8f2feecdf4d4b81bcccd80211467
parent8b3eff6c1b4e934a95dbb0f91546f911b8fe40b5
cert-crypto: implement certificate expiration

This completes the OpenSSL implementation. TLS-DSK is now fully
functional using OpenSSL crypto implementation.

Only problem is that OpenSSL doesn't offer a public API to convert
ASN1_TIME to "seconds since epoch". So I had to write some hackish code
using ASN1_TIME_print() and strptime().
src/core/sipe-cert-crypto-openssl.c