void gitno_buffer_setup(git_transport *t, gitno_buffer *buf, char *data, unsigned int len)
{
#ifdef GIT_SSL
- if (t->encrypt) {
+ if (t->use_ssl) {
gitno_buffer_setup_callback(t, buf, data, len, gitno__recv_ssl, NULL);
buf->ssl = &t->ssl;
} else
int ret;
#endif
- if (!t->encrypt)
+ if (!t->use_ssl)
return 0;
#ifdef GIT_SSL
t->socket = s;
p_freeaddrinfo(info);
- if (t->encrypt && ssl_setup(t, host) < 0)
+ if (t->use_ssl && ssl_setup(t, host) < 0)
return -1;
return 0;
size_t off = 0;
#ifdef GIT_SSL
- if (t->encrypt)
+ if (t->use_ssl)
return send_ssl(&t->ssl, msg, len);
#endif
int direction : 1, /* 0 fetch, 1 push */
connected : 1,
check_cert: 1,
- encrypt : 1,
+ use_ssl : 1,
own_logic: 1, /* transitional */
rpc: 1; /* git-speak for the HTTP transport */
#ifdef GIT_SSL