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
*/
/* $Id$ */
-#include "silcincludes.h"
+#include "silc.h"
#include "groups_internal.h"
/* Fixed and public Diffie Hellman Groups defined by the SKE
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) {
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) {