diff options
author | Nirbhay Choubey <nirbhay@skysql.com> | 2014-02-10 09:22:24 -0500 |
---|---|---|
committer | Nirbhay Choubey <nirbhay@skysql.com> | 2014-02-10 09:22:24 -0500 |
commit | 65f2f289d106efbfa73002d10294ff22e7af834a (patch) | |
tree | bb98c9b668e5b4e6470b0ef07febe87f112b7e93 /mysys_ssl | |
parent | aaf3063d0d504c718e079c89158c6f2ad4a4478a (diff) | |
download | mariadb-git-65f2f289d106efbfa73002d10294ff22e7af834a.tar.gz |
MDEV#5626 : Cannot install InnoDB/XtraDB plugin
(undefined symbol: wsrep_md5_update)
Refactored wsrep's md5 related code so that Innodb/xtradb
no longer relies on mysys_ssl for md5 implementation.
Diffstat (limited to 'mysys_ssl')
-rw-r--r-- | mysys_ssl/my_md5.cc | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/mysys_ssl/my_md5.cc b/mysys_ssl/my_md5.cc index c647ac1a4b7..bc303061613 100644 --- a/mysys_ssl/my_md5.cc +++ b/mysys_ssl/my_md5.cc @@ -67,34 +67,3 @@ void compute_md5_hash(char *digest, const char *buf, int len) #endif /* HAVE_YASSL */ } -#ifdef WITH_WSREP -void *wsrep_md5_init() -{ -#if defined(HAVE_YASSL) - TaoCrypt::MD5 *hasher= new TaoCrypt::MD5; - return (void*)hasher; -#elif defined(HAVE_OPENSSL) - MD5_CTX *ctx = new MD5_CTX(); - MD5_Init (ctx); - return (void *)ctx; -#endif /* HAVE_YASSL */ -} -void wsrep_md5_update(void *ctx, char* buf, int len) -{ -#if defined(HAVE_YASSL) - ((TaoCrypt::MD5 *)ctx)->Update((TaoCrypt::byte *) buf, len); -#elif defined(HAVE_OPENSSL) - MD5_Update((MD5_CTX*)(ctx), buf, len); -#endif /* HAVE_YASSL */ -} -void wsrep_compute_md5_hash(char *digest, void *ctx) -{ -#if defined(HAVE_YASSL) - ((TaoCrypt::MD5*)ctx)->Final((TaoCrypt::byte *) digest); - delete (TaoCrypt::MD5*)ctx; -#elif defined(HAVE_OPENSSL) - MD5_Final ((unsigned char*)digest, (MD5_CTX*)ctx); - delete (MD5_CTX*)ctx; -#endif /* HAVE_YASSL */ -} -#endif /* WITH_WSREP */ |