0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-29 08:54:02 +01:00

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 "sslproc.h"
extern char *crypt();
#ifndef INADDR_NONE
#define INADDR_NONE ((unsigned int) 0xffffffff)
#endif
@ -343,7 +341,7 @@ check_server(const char *name, struct Client *client_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)))
{
server_p = tmp_p;

View file

@ -58,8 +58,6 @@
static void report_and_set_user_flags(struct Client *, struct ConfItem *);
void user_welcome(struct Client *source_p);
extern char *crypt();
char umodebuf[128];
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))
encr = "";
else if(IsConfEncrypted(aconf))
encr = crypt(source_p->localClient->passwd, aconf->passwd);
encr = rb_crypt(source_p->localClient->passwd, aconf->passwd);
else
encr = source_p->localClient->passwd;