提交 cb4d6c2b 编写于 作者: J Junio C Hamano

Merge branch 'xq/credential-osxkeychain'

* xq/credential-osxkeychain:
  credential-osxkeychain: support more protocols
...@@ -127,10 +127,20 @@ static void read_credential(void) ...@@ -127,10 +127,20 @@ static void read_credential(void)
*v++ = '\0'; *v++ = '\0';
if (!strcmp(buf, "protocol")) { if (!strcmp(buf, "protocol")) {
if (!strcmp(v, "https")) if (!strcmp(v, "imap"))
protocol = kSecProtocolTypeIMAP;
else if (!strcmp(v, "imaps"))
protocol = kSecProtocolTypeIMAPS;
else if (!strcmp(v, "ftp"))
protocol = kSecProtocolTypeFTP;
else if (!strcmp(v, "ftps"))
protocol = kSecProtocolTypeFTPS;
else if (!strcmp(v, "https"))
protocol = kSecProtocolTypeHTTPS; protocol = kSecProtocolTypeHTTPS;
else if (!strcmp(v, "http")) else if (!strcmp(v, "http"))
protocol = kSecProtocolTypeHTTP; protocol = kSecProtocolTypeHTTP;
else if (!strcmp(v, "smtp"))
protocol = kSecProtocolTypeSMTP;
else /* we don't yet handle other protocols */ else /* we don't yet handle other protocols */
exit(0); exit(0);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册