source: branches/libc-0.6/src/libctests/glibc/crypt/md5c-test.c

Last change on this file was 2046, checked in by bird, 20 years ago

Porting to FreeBSD 64-bit

  • Property cvs2svn:cvs-rev set to 1.2
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 315 bytes
Line 
1#ifdef __BSD__
2#include <unistd.h>
3#else
4#include <crypt.h>
5#endif
6#include <string.h>
7
8int
9main (int argc, char *argv[])
10{
11 const char salt[] = "$1$saltstring";
12 char *cp;
13 int result = 0;
14
15 cp = crypt ("Hello world!", salt);
16 result |= strcmp ("$1$saltstri$YMyguxXMBpd2TEZ.vS/3q1", cp);
17
18 return result;
19}
Note: See TracBrowser for help on using the repository browser.