X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcske%2Fgroups.c;h=992779123a54c0f85663fa53b216738d02fd26cb;hb=40f8443d8d3a6577336ee66d18e04d9ac4d956bb;hp=c5a947e8866cd96c01304e76efef8b339717e21c;hpb=7428855aff83c6dd40431bb88d3f1e5c973e7c06;p=silc.git diff --git a/lib/silcske/groups.c b/lib/silcske/groups.c index c5a947e8..99277912 100644 --- a/lib/silcske/groups.c +++ b/lib/silcske/groups.c @@ -8,8 +8,7 @@ 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. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -19,7 +18,7 @@ */ /* $Id$ */ -#include "silcincludes.h" +#include "silc.h" #include "groups_internal.h" /* Fixed and public Diffie Hellman Groups defined by the SKE @@ -83,8 +82,10 @@ SilcSKEStatus silc_ske_group_get_by_number(int number, break; } - if (silc_ske_groups[i].name == NULL) + if (silc_ske_groups[i].name == NULL) { + SILC_LOG_ERROR(("Unsupported Diffie-Hellman group number %d", number)); return SILC_SKE_STATUS_UNKNOWN_GROUP; + } /* Return the group */ if (ret) { @@ -117,8 +118,10 @@ SilcSKEStatus silc_ske_group_get_by_name(const char *name, break; } - if (silc_ske_groups[i].name == NULL) + if (silc_ske_groups[i].name == NULL) { + SILC_LOG_ERROR(("Unsupported Diffie-Hellman group `%s'", name)); return SILC_SKE_STATUS_UNKNOWN_GROUP; + } /* Return the group */ if (ret) {