Skip to content

Instantly share code, notes, and snippets.

@SkyBulk
Last active January 23, 2020 18:24
Show Gist options
  • Save SkyBulk/e027aabf24afd989243b453f7fda8f75 to your computer and use it in GitHub Desktop.
Save SkyBulk/e027aabf24afd989243b453f7fda8f75 to your computer and use it in GitHub Desktop.
char *mail_auth (char *mechanism,authresponse_t resp,int argc,char *argv[]){
char tmp[MAILTMPLEN];
AUTHENTICATOR *auth;
/* make upper case copy of mechanism name */
ucase (strcpy (tmp,mechanism));
for (auth = mailauthenticators; auth; auth = auth->next)
if (auth->server && !strcmp (auth->name,tmp))
return (*auth->server) (resp,argc,argv);
return NIL; /* no authenticator found */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment