[Gambas-user] [Gambas Bug Tracker] Bug #984: error compiling again 0.9 openssl, only 1.0 compiles

bugtracker at ...3416... bugtracker at ...3416...
Tue Aug 30 15:37:24 CEST 2016


http://gambaswiki.org/bugtracker/edit?object=BUG.984&from=L21haW4-

Comment #16 by PICCORO LENZ MCKAY:

i forgot the patch:


--- c_digest.c.old 
+++ c_digest.c 
@@ -145,7 +145,7 @@
  * there.
  */
 #if OPENSSL_VERSION_NUMBER <= 0x0090821fL
-static int EVP_MD_CTX_cleanup(EVP_MD_CTX *ctx)
+inline int EVP_MD_CTX_cleanup(EVP_MD_CTX *ctx)
 {
 	/* Don't assume ctx->md_data was cleaned in EVP_Digest_Final,
 	 * because sometimes only copies of the context are ever finalised.
@@ -168,12 +168,12 @@
 	return 1;
 }
 
-static void EVP_MD_CTX_init(EVP_MD_CTX *ctx)
+inline void EVP_MD_CTX_init(EVP_MD_CTX *ctx)
 {
 	memset(ctx, '\0', sizeof *ctx);
 }
 
-static EVP_MD_CTX *EVP_MD_CTX_new(void)
+inline EVP_MD_CTX *EVP_MD_CTX_new(void)
 {
 	EVP_MD_CTX *ctx = OPENSSL_malloc(sizeof *ctx);
 
@@ -182,7 +182,7 @@
 	return ctx;
 }
 
-static void EVP_MD_CTX_free(EVP_MD_CTX *ctx)
+inline void EVP_MD_CTX_free(EVP_MD_CTX *ctx)
 {
 	EVP_MD_CTX_cleanup(ctx);
 	OPENSSL_free(ctx);






More information about the User mailing list