blob: 76e02c235aa503ba4aaaca4e6e940bcdbeca22b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/* $OpenBSD: crypt.c,v 1.28 2015/05/13 21:01:54 bluhm Exp $ */
#include <pwd.h>
char *
crypt(const char *key, const char *setting)
{
if (setting[0] == '$') {
switch (setting[1]) {
case '2':
return bcrypt(key, setting);
default:
return (NULL);
}
}
return (NULL);
}
|