e_old.c 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. /*
  2. * Copyright 2004-2016 The OpenSSL Project Authors. All Rights Reserved.
  3. *
  4. * Licensed under the OpenSSL license (the "License"). You may not use
  5. * this file except in compliance with the License. You can obtain a copy
  6. * in the file LICENSE in the source distribution or at
  7. * https://www.openssl.org/source/license.html
  8. */
  9. #include <openssl/opensslconf.h>
  10. #if OPENSSL_API_COMPAT >= 0x00908000L
  11. NON_EMPTY_TRANSLATION_UNIT
  12. #else
  13. # include <openssl/evp.h>
  14. /*
  15. * Define some deprecated functions, so older programs don't crash and burn
  16. * too quickly. On Windows and VMS, these will never be used, since
  17. * functions and variables in shared libraries are selected by entry point
  18. * location, not by name.
  19. */
  20. # ifndef OPENSSL_NO_BF
  21. # undef EVP_bf_cfb
  22. const EVP_CIPHER *EVP_bf_cfb(void);
  23. const EVP_CIPHER *EVP_bf_cfb(void)
  24. {
  25. return EVP_bf_cfb64();
  26. }
  27. # endif
  28. # ifndef OPENSSL_NO_DES
  29. # undef EVP_des_cfb
  30. const EVP_CIPHER *EVP_des_cfb(void);
  31. const EVP_CIPHER *EVP_des_cfb(void)
  32. {
  33. return EVP_des_cfb64();
  34. }
  35. # undef EVP_des_ede3_cfb
  36. const EVP_CIPHER *EVP_des_ede3_cfb(void);
  37. const EVP_CIPHER *EVP_des_ede3_cfb(void)
  38. {
  39. return EVP_des_ede3_cfb64();
  40. }
  41. # undef EVP_des_ede_cfb
  42. const EVP_CIPHER *EVP_des_ede_cfb(void);
  43. const EVP_CIPHER *EVP_des_ede_cfb(void)
  44. {
  45. return EVP_des_ede_cfb64();
  46. }
  47. # endif
  48. # ifndef OPENSSL_NO_IDEA
  49. # undef EVP_idea_cfb
  50. const EVP_CIPHER *EVP_idea_cfb(void);
  51. const EVP_CIPHER *EVP_idea_cfb(void)
  52. {
  53. return EVP_idea_cfb64();
  54. }
  55. # endif
  56. # ifndef OPENSSL_NO_RC2
  57. # undef EVP_rc2_cfb
  58. const EVP_CIPHER *EVP_rc2_cfb(void);
  59. const EVP_CIPHER *EVP_rc2_cfb(void)
  60. {
  61. return EVP_rc2_cfb64();
  62. }
  63. # endif
  64. # ifndef OPENSSL_NO_CAST
  65. # undef EVP_cast5_cfb
  66. const EVP_CIPHER *EVP_cast5_cfb(void);
  67. const EVP_CIPHER *EVP_cast5_cfb(void)
  68. {
  69. return EVP_cast5_cfb64();
  70. }
  71. # endif
  72. # ifndef OPENSSL_NO_RC5
  73. # undef EVP_rc5_32_12_16_cfb
  74. const EVP_CIPHER *EVP_rc5_32_12_16_cfb(void);
  75. const EVP_CIPHER *EVP_rc5_32_12_16_cfb(void)
  76. {
  77. return EVP_rc5_32_12_16_cfb64();
  78. }
  79. # endif
  80. # undef EVP_aes_128_cfb
  81. const EVP_CIPHER *EVP_aes_128_cfb(void);
  82. const EVP_CIPHER *EVP_aes_128_cfb(void)
  83. {
  84. return EVP_aes_128_cfb128();
  85. }
  86. # undef EVP_aes_192_cfb
  87. const EVP_CIPHER *EVP_aes_192_cfb(void);
  88. const EVP_CIPHER *EVP_aes_192_cfb(void)
  89. {
  90. return EVP_aes_192_cfb128();
  91. }
  92. # undef EVP_aes_256_cfb
  93. const EVP_CIPHER *EVP_aes_256_cfb(void);
  94. const EVP_CIPHER *EVP_aes_256_cfb(void)
  95. {
  96. return EVP_aes_256_cfb128();
  97. }
  98. #endif