|
|
|
|
@ -35,6 +35,9 @@ index 916024a8..79564a10 100644
|
|
|
|
|
|
|
|
|
|
int STDCALL mysql_set_server_option(MYSQL *mysql,
|
|
|
|
|
diff --git libmariadb/secure/openssl.c libmariadb/secure/openssl.c
|
|
|
|
|
+index 916024a8..79564a10 100644
|
|
|
|
|
+--- libmariadb/secure/openssl.c
|
|
|
|
|
++++ libmariadb/secure/openssl.c
|
|
|
|
|
@@ -30,6 +30,11 @@
|
|
|
|
|
#include <openssl/conf.h>
|
|
|
|
|
#include <openssl/md4.h>
|
|
|
|
|
@ -81,9 +84,9 @@ diff --git libmariadb/secure/openssl.c libmariadb/secure/openssl.c
|
|
|
|
|
+ close(fd);
|
|
|
|
|
+ return 0;
|
|
|
|
|
+ }
|
|
|
|
|
+ // Compute the SHA-1 hash
|
|
|
|
|
+ SHA1(fb, statbuf.st_size, temp);
|
|
|
|
|
+ for (int i=0; i < SHA_DIGEST_LENGTH; i++) {
|
|
|
|
|
+ int i=0;
|
|
|
|
|
+ for (i=0; i < SHA_DIGEST_LENGTH; i++) {
|
|
|
|
|
+ sprintf((char*)&(file_sha1[i*2]), "%02x", temp[i]);
|
|
|
|
|
+ }
|
|
|
|
|
+ free(fb);
|
|
|
|
|
|