continue;
}
- age = ossl_time_subtract(ossl_seconds2time(ticket_agel),
- ossl_seconds2time(sess->ext.tick_age_add));
+ age = ossl_time_subtract(ossl_ms2time(ticket_agel),
+ ossl_ms2time(sess->ext.tick_age_add));
t = ossl_time_subtract(ossl_time_now(), sess->time);
/*
- * Beause we use second granuality, it could appear that
- * the client's ticket age is longer than ours (our ticket
- * age calculation should always be slightly longer than the
- * client's due to the network latency). Therefore we add
- * 1000ms to our age calculation to adjust for rounding errors.
+ * Although internally we use OSS_TIME which has ns granularity,
+ * when SSL_SESSION structures are serialised/deserialised we use
+ * second granularity for the sess->time field. Therefore it could
+ * appear that the client's ticket age is longer than ours (our
+ * ticket age calculation should always be slightly longer than the
+ * client's due to the network latency). Therefore we add 1000ms to
+ * our age calculation to adjust for rounding errors.
*/
expire = ossl_time_add(t, ossl_ms2time(1000));