"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/version.c" between
libksba-1.4.0.tar.bz2 and libksba-1.5.0.tar.bz2

About: KSBA is a library to make the tasks of working with X.509 certificates, CMS data and related objects more easy.

version.c  (libksba-1.4.0.tar.bz2):version.c  (libksba-1.5.0.tar.bz2)
skipping to change at line 103 skipping to change at line 103
|| (my_major == rq_major && my_minor == rq_minor || (my_major == rq_major && my_minor == rq_minor
&& my_micro > rq_micro) && my_micro > rq_micro)
|| (my_major == rq_major && my_minor == rq_minor || (my_major == rq_major && my_minor == rq_minor
&& my_micro == rq_micro)) && my_micro == rq_micro))
{ {
return my_version; return my_version;
} }
return NULL; return NULL;
} }
/* This is actually a dummy function to make sure that is module is
not empty. Some compilers barf on empty modules. */
static const char *
cright_blurb (void)
{
static const char blurb[] =
"\n\n"
"This is Libksba " PACKAGE_VERSION " - An X.509 and CMS Library\n"
"Copyright 2001-2006,2010-2015,2018-2020 g10 Code GmbH\n"
"\n"
"SPDX-License-Identifier: LGPL-3.0-or-later OR GPL-2.0-or-later\n"
"(" BUILD_REVISION " " BUILD_TIMESTAMP ")\n"
"\n\n";
return blurb;
}
/** /**
* ksba_check_version: * ksba_check_version:
* @req_version: A string with a version * @req_version: A string with a version
* *
* Check that the the version of the library is at minimum the requested one * Check that the the version of the library is at minimum the requested one
* and return the version string; return NULL if the condition is not * and return the version string; return NULL if the condition is not
* met. If a NULL is passed to this function, no check is done and * met. If a NULL is passed to this function, no check is done and
* the version string is simply returned. It is a pretty good idea to * the version string is simply returned. It is a pretty good idea to
* run this function as soon as possible, because it also intializes * run this function as soon as possible, because it also intializes
* some subsystems. In a multithreaded environment if should be called * some subsystems. In a multithreaded environment if should be called
* before the first thread is created. * before the first thread is created.
* *
* Return value: The version string or NULL * Return value: The version string or NULL
**/ **/
const char * const char *
ksba_check_version (const char *req_version) ksba_check_version (const char *req_version)
{ {
/* fixme: if we need global initializations. /* fixme: if we need global initializations.
Note that these the malloc hook might not have been run yet */ Note that the malloc hook might not have been run yet */
if (req_version && req_version[0] == 1 && req_version[1] == 1)
return cright_blurb ();
return compare_versions (VERSION, req_version); return compare_versions (VERSION, req_version);
} }
 End of changes. 2 change blocks. 
1 lines changed or deleted 19 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)