instance method
OpenSSL::SSL::Session#==
(self other) -> bool
session1 == session2 → boolean
ext/openssl/ossl_ssl_session.c
View on GitHub ↗
static VALUE ossl_ssl_session_eq(VALUE val1, VALUE val2)
{
SSL_SESSION *ctx1, *ctx2;
GetSSLSession(val1, ctx1);
GetSSLSession(val2, ctx2);
switch (ossl_SSL_SESSION_cmp(ctx1, ctx2)) {
case 0: return Qtrue;
default: return Qfalse;
}
}
Returns true if the two Session is the same, false if not.