Xidorn Quan <quanxunz...@gmail.com> writes:

> Add protocol imap, imaps, ftp and smtp for credential-osxkeychain.
>
> Signed-off-by: Xidorn Quan <quanxunz...@gmail.com>
> Acked-by: John Szakmeister <j...@szakmeister.net>
> Acked-by: Jeff King <p...@peff.net>
> ---

Hmph, I think I already have an identical copy in my tree.  Sent a
wrong patch?

>  contrib/credential/osxkeychain/git-credential-osxkeychain.c | 12 +++++++++++-
>  1 file changed, 11 insertions(+), 1 deletion(-)
>
> diff --git a/contrib/credential/osxkeychain/git-credential-osxkeychain.c 
> b/contrib/credential/osxkeychain/git-credential-osxkeychain.c
> index 3940202..bcd3f57 100644
> --- a/contrib/credential/osxkeychain/git-credential-osxkeychain.c
> +++ b/contrib/credential/osxkeychain/git-credential-osxkeychain.c
> @@ -127,10 +127,20 @@ static void read_credential(void)
>               *v++ = '\0';
>  
>               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;
>                       else if (!strcmp(v, "http"))
>                               protocol = kSecProtocolTypeHTTP;
> +                     else if (!strcmp(v, "smtp"))
> +                             protocol = kSecProtocolTypeSMTP;
>                       else /* we don't yet handle other protocols */
>                               exit(0);
>               }
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to