mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 14:31:10 +00:00
fb6f34e499
This adds a crypt(3) implementation for use with broadwayd as Visual Studio does not support crypt(3) out of the box. The public domain implementation is taken from the following URL, http://michael.dipperstein.com/crypt/, where AFAICT this implementation would not be subject to licensing restrictions that would prevent it from being bundled.
33 lines
832 B
C
33 lines
832 B
C
/**************************************************************************
|
|
* Unix-like crypt(3) Algorithm for Password Encryption
|
|
*
|
|
* File : crypt3.h
|
|
* Purpose : Provides crypt(3) prototypes to ANSI C compilers
|
|
* without a need for the crypt library.
|
|
* Author : Fan, Chun-wei
|
|
* Date : June 24, 2013
|
|
*
|
|
* I am releasing the source that I have provided into public
|
|
* domain without any restrictions, warranties, or copyright
|
|
* claims of my own.
|
|
*
|
|
***************************************************************************/
|
|
|
|
#ifndef __ANSI_CRYPT_H__
|
|
#define __ANSI_CRYPT_H__
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
void encrypt (char *block, int edflag);
|
|
void setkey (char *key);
|
|
char* crypt (const char *key, const char *salt);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __ANSI_CRYPT_H__ */
|