mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-25 14:30:06 +00:00
16 lines
266 B
C
16 lines
266 B
C
|
#include <crypt.h>
|
||
|
#include <string.h>
|
||
|
|
||
|
int
|
||
|
main (int argc, char *argv[])
|
||
|
{
|
||
|
const char salt[] = "$1$saltstring";
|
||
|
char *cp;
|
||
|
int result = 0;
|
||
|
|
||
|
cp = crypt ("Hello world!", salt);
|
||
|
result |= strcmp ("$1$saltstri$YMyguxXMBpd2TEZ.vS/3q1", cp);
|
||
|
|
||
|
return result;
|
||
|
}
|