char *ssl_util_ptxtsub(apr_pool_t *, const char *, const char *, char *);
void ssl_util_thread_setup(server_rec *, apr_pool_t *);
+/* util functions for OpenSSL+sslc compat */
+int modssl_session_get_time(SSL_SESSION *session);
+
#define APR_SHM_MAXSIZE (64 * 1024 * 1024)
#endif /* __MOD_SSL_H__ */
id = SSL_SESSION_get_session_id(session);
idlen = SSL_SESSION_get_session_id_length(session);
- timeout += SSL_get_time(session);
+ timeout += modssl_session_get_time(session);
rc = ssl_scache_store(s, id, idlen, timeout, session);
return str;
}
+/* sslc+OpenSSL compat */
+
+int modssl_session_get_time(SSL_SESSION *session)
+{
+#ifdef OPENSSL_VERSION_NUMBER
+ return SSL_SESSION_get_time(session);
+#else /* assume sslc */
+ CRYPTO_TIME_T ct;
+ SSL_SESSION_get_time(session, &ct);
+ return CRYPTO_time_to_int(&ct);
+#endif
+}