summaryrefslogtreecommitdiff
path: root/src/openssl_stream.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2014-11-02 11:17:01 +0100
committerCarlos Martín Nieto <cmn@dwim.me>2014-12-10 01:39:09 +0100
commit1b75c29e3e175ad3ef4bc91a779b851dc76b9e09 (patch)
tree63516db94cc4900999122c74671b8d85d44c4d67 /src/openssl_stream.c
parent4fd4341fe5da5353d50769c007e3189adaf12fd7 (diff)
downloadlibgit2-1b75c29e3e175ad3ef4bc91a779b851dc76b9e09.tar.gz
gitno: remove code which is no longer needed
Most of the network-facing facilities have been copied to the socket and openssl streams. No code now uses these functions directly anymore, so we can now remove them.
Diffstat (limited to 'src/openssl_stream.c')
-rw-r--r--src/openssl_stream.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/openssl_stream.c b/src/openssl_stream.c
index 4c8b02c8c..0893bcc9d 100644
--- a/src/openssl_stream.c
+++ b/src/openssl_stream.c
@@ -17,6 +17,7 @@
#include "posix.h"
#include "stream.h"
#include "socket_stream.h"
+#include "netops.h"
#include "git2/transport.h"
static int ssl_set_error(SSL *ssl, int error)
@@ -103,7 +104,7 @@ static int verify_server_cert(SSL *ssl, const char *host)
if (SSL_get_verify_result(ssl) != X509_V_OK) {
giterr_set(GITERR_SSL, "The SSL certificate is invalid");
- return -1;
+ return GIT_ECERTIFICATE;
}
/* Try to parse the host as an IP address to see if it is */