]> granicus.if.org Git - libevent/commit
Fix BEV_IS_SSL() macro
authorAzat Khuzhin <azat@libevent.org>
Sat, 31 Oct 2020 19:48:37 +0000 (22:48 +0300)
committerAzat Khuzhin <azat@libevent.org>
Sat, 31 Oct 2020 19:50:04 +0000 (22:50 +0300)
commit2484500ac285501fa32defa747f6c79e3190126f
tree9af9b1020adee7717639ede0b46303b195ba435c
parentdb6e22c7db5f69bd34e1f2a247c7db7700f16cca
Fix BEV_IS_SSL() macro

We cannot use the same trick with external declaration,
since there are copy of bufferevent_ops_ssl in each library:
- openssl
- mbedlts

However we can just compare the name of the bufferevent type for now.
(It is totally fine to use memcmp() here since it will be optimized by the compiler).
bufferevent-internal.h