]> www.wagner.pp.ru Git - openssl-gost/engine.git/blobdiff - compat.h
Fix possible overflow of digest result writing
[openssl-gost/engine.git] / compat.h
index 91afcf5125f5de72417b972c3fa01d001b5a8e9c..29a2ad3270ef71d159ba39f2de337b5a9cd4f630 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;