File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
contrib/credential/osxkeychain Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -127,10 +127,20 @@ static void read_credential(void)
127127* v ++ = '\0' ;
128128
129129if (!strcmp (buf , "protocol" )) {
130- if (!strcmp (v , "https" ))
130+ if (!strcmp (v , "imap" ))
131+ protocol = kSecProtocolTypeIMAP ;
132+ else if (!strcmp (v , "imaps" ))
133+ protocol = kSecProtocolTypeIMAPS ;
134+ else if (!strcmp (v , "ftp" ))
135+ protocol = kSecProtocolTypeFTP ;
136+ else if (!strcmp (v , "ftps" ))
137+ protocol = kSecProtocolTypeFTPS ;
138+ else if (!strcmp (v , "https" ))
131139protocol = kSecProtocolTypeHTTPS ;
132140else if (!strcmp (v , "http" ))
133141protocol = kSecProtocolTypeHTTP ;
142+ else if (!strcmp (v , "smtp" ))
143+ protocol = kSecProtocolTypeSMTP ;
134144else /* we don't yet handle other protocols */
135145exit (0 );
136146}
You can’t perform that action at this time.
0 commit comments