summaryrefslogblamecommitdiff
path: root/src/crypt/crypt.c
blob: f1e310f6f1ca406c12410c57c3f22b54e3bea0e8 (plain) (tree)
1
2
3
4
5
6
7
8
9

                   
 
                                                                 
 
                                              
 
                                                                
                             
                                                              
 
#include <unistd.h>
#include <crypt.h>

char *__crypt_r(const char *, const char *, struct crypt_data *);

char *crypt(const char *key, const char *salt)
{
	/* Note: update this size when we add more hash types */
	static char buf[128];
	return __crypt_r(key, salt, (struct crypt_data *)buf);
}