{
if (unlikely(!session->internals.initial_negotiation_completed)) {
_gnutls_debug_log("Initial negotiation is not yet complete\n");
+ gnutls_assert();
return 0;
}
}
} else {
_gnutls_record_log(
- "Unable to set TCP_ULP for read socket: %d\n", errno);
+ "kTLS: Unable to set TCP_ULP for read socket: %d\n",
+ errno);
+ gnutls_assert();
}
if (sockin != sockout) {
session->internals.ktls_enabled |= GNUTLS_KTLS_SEND;
} else {
_gnutls_record_log(
- "Unable to set TCP_ULP for write socket: %d\n",
+ "kTLS: Unable to set TCP_ULP for write socket: %d\n",
errno);
+ gnutls_assert();
}
}
#endif
default:
return GNUTLS_E_PULL_ERROR;
}
+ } else if (unlikely(ret == -EKEYEXPIRED)) {
+ /* This will be received until a keyupdate is performed on the
+ scoket. */
+ _gnutls_debug_log("kTLS: socket(recv) has not yet received "
+ "updated keys\n");
+ gnutls_assert();
+ return GNUTLS_E_AGAIN;
}
/* connection closed */