/* $OpenBSD: crypt.c,v 1.30 2015/07/18 01:18:50 jeremy Exp $ */ #include #include char * crypt(const char *key, const char *setting) { if (setting[0] == '$') { switch (setting[1]) { case '2': return bcrypt(key, setting); default: errno = EINVAL; return (NULL); } } errno = EINVAL; return (NULL); }