[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS shishi/lib
From: |
shishi-commit |
Subject: |
CVS shishi/lib |
Date: |
Wed, 08 Sep 2004 18:25:39 +0200 |
Update of /home/cvs/shishi/lib
In directory dopio:/tmp/cvs-serv5581
Modified Files:
init.c
Log Message:
Check version.
Fix use after free on init errors.
--- /home/cvs/shishi/lib/init.c 2004/07/11 14:42:24 1.56
+++ /home/cvs/shishi/lib/init.c 2004/09/08 16:25:39 1.57
@@ -40,11 +40,19 @@
shishi_error_set_outputtype (handle, outputtype);
+ if (!shishi_check_version (SHISHI_VERSION))
+ {
+ shishi_warn (handle, "Library and header version missmatch (%s vs %s).",
+ shishi_check_version (NULL), SHISHI_VERSION);
+ free (handle);
+ return NULL;
+ }
+
rc = _shishi_crypto_init (handle);
if (rc != SHISHI_OK)
{
- free (handle);
shishi_warn (handle, "Cannot initialize crypto library");
+ free (handle);
return NULL;
}
@@ -52,8 +60,8 @@
rc = _shishi_tls_init (handle);
if (rc != SHISHI_OK)
{
- free (handle);
shishi_warn (handle, "Cannot initialize TLS library");
+ free (handle);
return NULL;
}
#endif
@@ -61,8 +69,8 @@
rc = _shishi_asn1_init (handle);
if (rc != SHISHI_OK)
{
- free (handle);
shishi_warn (handle, "%s", shishi_strerror (SHISHI_ASN1_ERROR));
+ free (handle);
return NULL;
}
- CVS shishi/lib, shishi-commit, 2004/09/02
- CVS shishi/lib, shishi-commit, 2004/09/02
- CVS shishi/lib, shishi-commit, 2004/09/02
- CVS shishi/lib, shishi-commit, 2004/09/06
- CVS shishi/lib, shishi-commit, 2004/09/08
- CVS shishi/lib,
shishi-commit <=
- CVS shishi/lib, shishi-commit, 2004/09/10
- CVS shishi/lib, shishi-commit, 2004/09/10
- CVS shishi/lib, shishi-commit, 2004/09/10
- CVS shishi/lib, shishi-commit, 2004/09/10
- CVS shishi/lib, shishi-commit, 2004/09/10
- CVS shishi/lib, shishi-commit, 2004/09/10
- CVS shishi/lib, shishi-commit, 2004/09/10
- CVS shishi/lib, shishi-commit, 2004/09/17
- CVS shishi/lib, shishi-commit, 2004/09/17
- CVS shishi/lib, shishi-commit, 2004/09/17