mailing list of musl libc
 help / color / mirror / code / Atom feed
fdc4427262fbfca2b26ef6188255917404487ff4 blob 549 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
 
#include <unistd.h>
#include <crypt.h>

/***
  struct crypt_data       --> the entire structure is used as a char[] buffer
        int initialized   --> member exists to satisfy API requirements, currently not used
        char __buf[256];  --> large enough for any future password hash
 ***/

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);
}
debug log:

solving fdc4427 ...
found fdc4427 in https://inbox.vuxu.org/musl/51674F43.9070306@eservices.virginia.edu/
found f1e310f in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 f1e310f6f1ca406c12410c57c3f22b54e3bea0e8	src/crypt/crypt.c

applying [1/1] https://inbox.vuxu.org/musl/51674F43.9070306@eservices.virginia.edu/
diff --git a/src/crypt/crypt.c b/src/crypt/crypt.c
index f1e310f..fdc4427 100644

Checking patch src/crypt/crypt.c...
Applied patch src/crypt/crypt.c cleanly.

index at:
100644 fdc4427262fbfca2b26ef6188255917404487ff4	src/crypt/crypt.c

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).