aboutsummaryrefslogtreecommitdiff
path: root/imap-send.c
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2013-07-29 18:28:30 -0700
committerJunio C Hamano <gitster@pobox.com>2013-07-30 08:53:24 -0700
commit3ef2bcad02efd6219f4ce599754c15e63b6af0dc (patch)
tree3f32ae410a875c7e3c07558cd0307da1cdbd108f /imap-send.c
parentbe4c828b761a7c65edcff75b008051b6d027e64a (diff)
downloadgit-3ef2bcad02efd6219f4ce599754c15e63b6af0dc.tar.gz
git-3ef2bcad02efd6219f4ce599754c15e63b6af0dc.tar.xz
imap-send: use Apple's Security framework for base64 encoding
Use Apple's supported functions for base64 encoding instead of the deprecated OpenSSL functions. Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com> Signed-off-by: David Aguilar <davvid@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'imap-send.c')
-rw-r--r--imap-send.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/imap-send.c b/imap-send.c
index d6b65e204..6f5cc4f78 100644
--- a/imap-send.c
+++ b/imap-send.c
@@ -28,20 +28,6 @@
#include "prompt.h"
#ifdef NO_OPENSSL
typedef void *SSL;
-#else
-#ifdef APPLE_COMMON_CRYPTO
-#include <CommonCrypto/CommonHMAC.h>
-#define HMAC_CTX CCHmacContext
-#define HMAC_Init(hmac, key, len, algo) CCHmacInit(hmac, algo, key, len)
-#define HMAC_Update CCHmacUpdate
-#define HMAC_Final(hmac, hash, ptr) CCHmacFinal(hmac, hash)
-#define HMAC_CTX_cleanup(ignore)
-#define EVP_md5() kCCHmacAlgMD5
-#else
-#include <openssl/evp.h>
-#include <openssl/hmac.h>
-#endif
-#include <openssl/x509v3.h>
#endif
static const char imap_send_usage[] = "git imap-send < <mbox>";