diff options
author | Dmitry Baryshkov <dbaryshkov@gmail.com> | 2020-05-24 20:00:14 +0000 |
---|---|---|
committer | Dmitry Baryshkov <dbaryshkov@gmail.com> | 2020-05-24 20:00:14 +0000 |
commit | 330a44728e14ddd3358ace6481ebd9bc687355ca (patch) | |
tree | 153d3851065f1e9b6ded9397a224cc67eb37f38b /lib/minitasn1/version.c | |
parent | d4da78171ea106628a77c07bcca594a4a3fb1e0e (diff) | |
parent | 2055909fe4fdc386f69e8171e49be72ccfc934ba (diff) | |
download | gnutls-330a44728e14ddd3358ace6481ebd9bc687355ca.tar.gz |
Merge branch 'tmp-vendor-minitasn1' into 'master'
Vendor-in libtasn1 sources in a form of minitasn1
See merge request gnutls/gnutls!1247
Diffstat (limited to 'lib/minitasn1/version.c')
-rw-r--r-- | lib/minitasn1/version.c | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/lib/minitasn1/version.c b/lib/minitasn1/version.c deleted file mode 100644 index 25f8a8f28e..0000000000 --- a/lib/minitasn1/version.c +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (C) 2000-2014 Free Software Foundation, Inc. - * - * This file is part of LIBTASN1. - * - * The LIBTASN1 library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA - */ - -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - -#include <string.h> /* for strverscmp */ - -#include "libtasn1.h" - -/** - * asn1_check_version: - * @req_version: Required version number, or %NULL. - * - * Check that the version of the library is at minimum the - * requested one and return the version string; return %NULL if the - * condition is not satisfied. If a %NULL is passed to this function, - * no check is done, but the version string is simply returned. - * - * See %ASN1_VERSION for a suitable @req_version string. - * - * Returns: Version string of run-time library, or %NULL if the - * run-time library does not meet the required version number. - */ -const char * -asn1_check_version (const char *req_version) -{ - if (!req_version || strverscmp (req_version, ASN1_VERSION) <= 0) - return ASN1_VERSION; - - return NULL; -} |