]> git.ipfire.org Git - thirdparty/glibc.git/blame - crypt/md5c-test.c
Fix math/test-fenvinline for no-exceptions configurations.
[thirdparty/glibc.git] / crypt / md5c-test.c
CommitLineData
68dbb3a6
UD
1#include <crypt.h>
2#include <string.h>
3
4int
5main (int argc, char *argv[])
6{
7 const char salt[] = "$1$saltstring";
8 char *cp;
9 int result = 0;
10
11 cp = crypt ("Hello world!", salt);
e7451425
AO
12
13 /* MD5 is disabled in FIPS mode. */
14 if (cp)
15 result |= strcmp ("$1$saltstri$YMyguxXMBpd2TEZ.vS/3q1", cp);
68dbb3a6
UD
16
17 return result;
18}