Changeset 1682

Show
Ignore:
Timestamp:
02/18/10 13:05:51 (7 months ago)
Author:
swalsh
Message:

add password auth to auto-auth

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/modules/nickserv.c

    r1681 r1682  
    20722072    { 
    20732073      if(!nickname_cert_check(nick, certfp, NULL)) 
    2074         send_auth_reply(nickserv, user, n, 0, "CertFP Mismatch"); 
     2074      { 
     2075        if(!check_nick_pass(NULL, nick, certfp)) 
     2076          send_auth_reply(nickserv, user, n, 0, "Authentication Failed"); 
     2077        else 
     2078          send_auth_reply(nickserv, user, n, 1, "Success"); 
     2079      } 
    20752080      else 
    20762081        send_auth_reply(nickserv, user, n, 1, "Success"); 
  • trunk/src/interface.c

    r1681 r1682  
    16911691  len = strlen(password) + SALTLEN + 1; 
    16921692 
    1693   if(*client->certfp != '\0') 
     1693  if(client && *client->certfp != '\0') 
    16941694  { 
    16951695    if(nickname_cert_check(nick, client->certfp, NULL))