diff options
author | Matt Caswell <matt@openssl.org> | 2022-08-22 16:09:23 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2022-09-23 14:43:24 +0100 |
commit | b5cf81f7c9775d2502730ba126893ce8af4db90e (patch) | |
tree | ae7582599104be7914a79883bc968c832a78a8db /ssl/record/methods/ktls_meth.c | |
parent | 310590139e45116d86627dcc85e83f2e3fcbb6b4 (diff) |
Replace references to s->wbio with rl->bio
We use the record layer reference to the BIO rather than the SSL object
reference. This removes an unneeded SSL object usage.
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19198)
Diffstat (limited to 'ssl/record/methods/ktls_meth.c')
-rw-r--r-- | ssl/record/methods/ktls_meth.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ssl/record/methods/ktls_meth.c b/ssl/record/methods/ktls_meth.c index d0db365c5b..663dbd1d37 100644 --- a/ssl/record/methods/ktls_meth.c +++ b/ssl/record/methods/ktls_meth.c @@ -517,6 +517,12 @@ ktls_new_record_layer(OSSL_LIB_CTX *libctx, const char *propq, int vers, (*retrl)->funcs = &ossl_ktls_funcs; + /* + * TODO(RECLAYER): We're not ready to set the crypto state for the write + * record layer. Fix this once we are + */ + if (direction == OSSL_RECORD_DIRECTION_WRITE) + return 1; ret = (*retrl)->funcs->set_crypto_state(*retrl, level, key, keylen, iv, ivlen, mackey, mackeylen, ciph, taglen, mactype, md, comp); |