diff -r d1db8aaa8edc -r 6171f0bad318 project_files/frontlib/net/netconn_send.c --- a/project_files/frontlib/net/netconn_send.c Wed Jun 27 18:04:17 2012 +0200 +++ b/project_files/frontlib/net/netconn_send.c Wed Jun 27 22:52:19 2012 +0200 @@ -1,3 +1,22 @@ +/* + * Hedgewars, a free turn based strategy game + * Copyright (C) 2012 Simeon Maxein + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + #include "netconn_internal.h" #include "../util/logging.h" @@ -68,14 +87,14 @@ return result; } -int flib_netconn_send_password(flib_netconn *conn, const char *latin1Passwd) { +int flib_netconn_send_password(flib_netconn *conn, const char *passwd) { int result = -1; - if(!log_badparams_if(!conn || !latin1Passwd)) { + if(!log_badparams_if(!conn || !passwd)) { md5_state_t md5state; uint8_t md5bytes[16]; char md5hex[33]; md5_init(&md5state); - md5_append(&md5state, (unsigned char*)latin1Passwd, strlen(latin1Passwd)); + md5_append(&md5state, (unsigned char*)passwd, strlen(passwd)); md5_finish(&md5state, md5bytes); for(int i=0;i