last changes of crypt -> rb_crypt

This commit is contained in:
Valery Yatsko 2008-07-27 14:52:46 +04:00
parent 5440859e95
commit ba8b3ff18a
2 changed files with 2 additions and 6 deletions

View file

@ -55,8 +55,6 @@
#include "reject.h" #include "reject.h"
#include "sslproc.h" #include "sslproc.h"
extern char *crypt();
#ifndef INADDR_NONE #ifndef INADDR_NONE
#define INADDR_NONE ((unsigned int) 0xffffffff) #define INADDR_NONE ((unsigned int) 0xffffffff)
#endif #endif
@ -343,7 +341,7 @@ check_server(const char *name, struct Client *client_p)
if(ServerConfEncrypted(tmp_p)) if(ServerConfEncrypted(tmp_p))
{ {
if(!strcmp(tmp_p->passwd, crypt(client_p->localClient->passwd, if(!strcmp(tmp_p->passwd, rb_crypt(client_p->localClient->passwd,
tmp_p->passwd))) tmp_p->passwd)))
{ {
server_p = tmp_p; server_p = tmp_p;

View file

@ -58,8 +58,6 @@
static void report_and_set_user_flags(struct Client *, struct ConfItem *); static void report_and_set_user_flags(struct Client *, struct ConfItem *);
void user_welcome(struct Client *source_p); void user_welcome(struct Client *source_p);
extern char *crypt();
char umodebuf[128]; char umodebuf[128];
static int orphaned_umodes = 0; static int orphaned_umodes = 0;
@ -364,7 +362,7 @@ register_local_user(struct Client *client_p, struct Client *source_p, const char
if(EmptyString(source_p->localClient->passwd)) if(EmptyString(source_p->localClient->passwd))
encr = ""; encr = "";
else if(IsConfEncrypted(aconf)) else if(IsConfEncrypted(aconf))
encr = crypt(source_p->localClient->passwd, aconf->passwd); encr = rb_crypt(source_p->localClient->passwd, aconf->passwd);
else else
encr = source_p->localClient->passwd; encr = source_p->localClient->passwd;