]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - providers/common/ciphers/cipher_tdes_hw.c
Fix Solaris compile errors in provider ciphers
[thirdparty/openssl.git] / providers / common / ciphers / cipher_tdes_hw.c
index 980201267ba436274baf5898cd326f45f073af2c..92b6de24220ff0a272155999bc73663c3dd5c5b4 100644 (file)
@@ -27,8 +27,8 @@ int cipher_hw_tdes_ede3_initkey(PROV_CIPHER_CTX *ctx, const unsigned char *key,
             des_t4_key_expand(&deskey[0], &tctx->ks1);
             des_t4_key_expand(&deskey[1], &tctx->ks2);
             des_t4_key_expand(&deskey[2], &tctx->ks3);
-            dat->tstream.cbc = enc ? des_t4_ede3_cbc_encrypt :
-                                     des_t4_ede3_cbc_decrypt;
+            tctx->tstream.cbc = ctx->enc ? des_t4_ede3_cbc_encrypt :
+                                           des_t4_ede3_cbc_decrypt;
             return 1;
         }
     }