]> www.wagner.pp.ru Git - openssl-gost/engine.git/blobdiff - compat.h
Make it possible to re-define OPENSSL_ENGINES_INSTALL_DIR
[openssl-gost/engine.git] / compat.h
index 91afcf5125f5de72417b972c3fa01d001b5a8e9c..f7effbee7382031b32553b7ab9c073126612076a 100644 (file)
--- a/compat.h
+++ b/compat.h
@@ -252,6 +252,11 @@ static inline int EVP_MD_meth_set_result_size(EVP_MD *md, int resultsize)
     return 1;
 }
 
+static int EVP_MD_meth_get_result_size(const EVP_MD *md)
+{
+    return md->md_size;
+}
+
 static inline int EVP_MD_meth_set_input_blocksize(EVP_MD *md, int blocksize)
 {
     md->block_size = blocksize;
@@ -339,4 +344,16 @@ static inline int (*EVP_MD_meth_get_ctrl(const EVP_MD *md))(EVP_MD_CTX *ctx, int
 
 # endif /* (OPENSSL_VERSION_NUMBER <= 0x10002100L) */
 
+# ifndef NID_id_tc26_cipher_gostr3412_2015_kuznyechik
+#  define NID_id_tc26_cipher_gostr3412_2015_kuznyechik                  1176
+#  define NID_id_tc26_cipher_gostr3412_2015_kuznyechik_ctracpkm         1177
+#  define NID_id_tc26_cipher_gostr3412_2015_kuznyechik_ctracpkm_omac    1178
+#  define NID_magma_ecb                                                        1187
+#  define NID_magma_ctr                                                        1188
+#  define NID_magma_ofb                                                        1189
+#  define NID_magma_cbc                                                        1190
+#  define NID_magma_cfb                                                        1191
+#  define NID_magma_mac                                                        1192
+# endif
+
 #endif /* !_GOST_COMPAT_H */