00001 /* version.c --- Version handling. 00002 * Copyright (C) 2002, 2003, 2004, 2006, 2007, 2008, 2009, 2010 Simon 00003 * Josefsson 00004 * 00005 * This file is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU Lesser General Public 00007 * License as published by the Free Software Foundation; either 00008 * version 2.1 of the License, or (at your option) any later version. 00009 * 00010 * This file is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 * Lesser General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU Lesser General Public 00016 * License along with this file; if not, write to the Free Software 00017 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA 00018 * 00019 */ 00020 00021 #ifdef HAVE_CONFIG_H 00022 # include "config.h" 00023 #endif 00024 00025 #include "stringprep.h" 00026 00027 #include <string.h> /* for strverscmp */ 00028 00043 const char * 00044 stringprep_check_version (const char *req_version) 00045 { 00046 if (!req_version || strverscmp (req_version, STRINGPREP_VERSION) <= 0) 00047 return STRINGPREP_VERSION; 00048 00049 return NULL; 00050 }