};
#ifdef _DES_PROTO
-#if defined(PERL5) || defined(lint)
char *des_crypt(char *buf,char *salt);
#else
-char *crypt(char *buf,char *salt);
-#endif
-#else
-#ifdef PERL5
char *des_crypt();
-#else
-char *crypt();
-#endif
#endif
-#if defined(PERL5) || defined(lint)
char *des_crypt(buf,salt)
-#else
-char *crypt(buf,salt)
-#endif
char *buf;
char *salt;
{
unsigned char c,u;
/* eay 25/08/92
- * If you call crypt("pwd","*") as often happens when you
+ * If you call des_crypt("pwd","*") as often happens when you
* have * as the pwd field in /etc/passwd, the function
* returns *\0XXXXXXXXX
* The \0 makes the string look like * so the pwd "*" would
-major=4
-minor=1
+major=5
+minor=0
des_cblock *iv);
int des_enc_write(int fd,char *buf,int len,des_key_schedule sched,
des_cblock *iv);
-#ifdef PERL5
char *des_crypt(const char *buf,const char *salt);
-#else
-/* some stupid compilers complain because I have declared char instead
- * of const char */
-#ifdef HEADER_DES_LOCL_H
-char *crypt(const char *buf,const char *salt);
-#else
-char *crypt();
-#endif
-#endif
void des_ofb_encrypt(unsigned char *in,unsigned char *out,
int numbits,long length,des_key_schedule schedule,des_cblock *ivec);
void des_pcbc_encrypt(des_cblock *input,des_cblock *output,long length,
/* crypt only considers the first 8 characters of password but for some
reason returns eleven characters of result (plus the two salt chars). */
- strncpy((void *)key, (char *)crypt(password, "#~") + 2, sizeof(des_cblock));
+ strncpy((void *)key, (char *)des_crypt(password, "#~") + 2, sizeof(des_cblock));
/* parity is inserted into the LSB so leftshift each byte up one bit. This
allows ascii characters with a zero MSB to retain as much significance