2015-01-05 Steve Ellcey <sellcey@imgtec.com>
[glibc.git] / crypt / md5c-test.c
blobc80e40202d5044eb3b69f2ec81b9eb04eac50d31
1 #include <crypt.h>
2 #include <string.h>
4 int
5 main (int argc, char *argv[])
7 const char salt[] = "$1$saltstring";
8 char *cp;
9 int result = 0;
11 cp = crypt ("Hello world!", salt);
13 /* MD5 is disabled in FIPS mode. */
14 if (cp)
15 result |= strcmp ("$1$saltstri$YMyguxXMBpd2TEZ.vS/3q1", cp);
17 return result;