Ignore:
Timestamp:
Mar 17, 2009, 9:50:20 PM (13 years ago)
Author:
livings124
Message:

#1276 encrypt the password to access web client interface using SHA-2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/session.c

    r8047 r8072  
    298298    tr_bencDictAddInt( d, TR_PREFS_KEY_RPC_AUTH_REQUIRED,        tr_sessionIsRPCPasswordEnabled( s ) );
    299299    tr_bencDictAddInt( d, TR_PREFS_KEY_RPC_ENABLED,              tr_sessionIsRPCEnabled( s ) );
    300     tr_bencDictAddStr( d, TR_PREFS_KEY_RPC_PASSWORD,             freeme[n++] = tr_sessionGetRPCPassword( s ) );
    301300    tr_bencDictAddInt( d, TR_PREFS_KEY_RPC_PORT,                 tr_sessionGetRPCPort( s ) );
    302301    tr_bencDictAddStr( d, TR_PREFS_KEY_RPC_USERNAME,             freeme[n++] = tr_sessionGetRPCUsername( s ) );
     
    14551454}
    14561455
    1457 char*
    1458 tr_sessionGetRPCPassword( const tr_session * session )
    1459 {
    1460     assert( tr_isSession( session ) );
    1461 
    1462     return tr_rpcGetPassword( session->rpcServer );
    1463 }
    1464 
    14651456void
    14661457tr_sessionSetRPCUsername( tr_session * session,
Note: See TracChangeset for help on using the changeset viewer.