]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Fix OpenSSL conditionals for two files
authorIsaac Boukris <iboukris@gmail.com>
Sun, 5 Dec 2021 21:08:41 +0000 (16:08 -0500)
committerGreg Hudson <ghudson@mit.edu>
Sun, 5 Dec 2021 23:14:23 +0000 (18:14 -0500)
Commit 7e8c41afc54db2ca75de5a1e2e440b034be8887b mistakenly left
two files.  Fix them.

[ghudson@mit.edu: keep crypto_int.h include unconditional; wrote
commit message]

src/lib/crypto/openssl/des/des_keys.c
src/lib/crypto/openssl/enc_provider/camellia.c

index 0a4a5178b5264461c0de2d34a0e244c2682b7b72..83f1cbf22ae4ead67c37f371fa0f08de1dd2d4ec 100644 (file)
  */
 
 #include "crypto_int.h"
-#include <openssl/des.h>
 
 #ifdef K5_OPENSSL_DES_KEY_PARITY
+
+#include <openssl/des.h>
+
 void
 k5_des_fixup_key_parity(unsigned char *keybits)
 {
     DES_set_odd_parity((DES_cblock *)keybits);
 }
+
 #endif
index 81f4772ca6b5c199fa7a45082ce2545b5efb3800..01920e6ce100fdc9199dd78f723c683f904932a7 100644 (file)
@@ -25,6 +25,9 @@
  */
 
 #include "crypto_int.h"
+
+#ifdef K5_OPENSSL_CAMELLIA
+
 #include <openssl/evp.h>
 #include <openssl/camellia.h>
 #if OPENSSL_VERSION_NUMBER >= 0x30000000L
@@ -33,8 +36,6 @@
 #include <openssl/modes.h>
 #endif
 
-#ifdef K5_OPENSSL_CAMELLIA
-
 static krb5_error_code
 cbc_enc(krb5_key key, const krb5_data *ivec, krb5_crypto_iov *data,
         size_t num_data);