Problems connecting to database through ODBC - Mac with Java bindings

Stefan Santesson <[email protected]>
Newsgroups gmane.comp.encryption.cryptlib
Message-ID <C82BDF96.B408%[email protected]>
Hi,

I have a problem to connect cryptlib to a database through ODBC and I¹m
pretty stuck.
I¹m running cryptlib on a Mac OS X 10.6.3 (Snow Leopard), using Java
Bindings.

I try to connect both version 3.3.3 and version 3.3.2 of cryptlib to both
SQLite and MySQL through ODBC.
I've done everything I possibly can think of, but my java app refuses to
work with any database what-so-ever using ODBC.

I have activated ODBC and I have created a ODBC connection to both a
functional MySQL database as well as a SQLite database. Both databases are
live and kicking and the ODBC connection tests OK.

I have recompiled both version 3.3.3 and 3.3.2 of the cryptlib and both of
them acknowledge that I have ODBC when doing "make shared".
I have not edited misc/config.h with respect to USE_ODBC since it seems
automatic in its detection (despite what the manual suggests)

I try to initiate the keyset with:

int cryptKeyset = crypt.KeysetOpen(crypt.UNUSED, crypt.KEYSET_ODBC, "pkdb",
crypt.KEYOPT_CREATE);
"pkdb" being the DSN name of the ODBC connection.

Both connections to SQLite or MySQL server fails with the -40 error:
cryptlib.CryptException: -40: Cannot open object

Have also tried with KEYOPT_NONE and KEYOPT_READONLY with same result.
I have not created any tables in the databases but the databases themselves
are created.

I have searched the whole internet for clues but found none that suggest
that I should do anything differently.

Does anyone have any clue what's wrong here. I start to feel desperate... :)
Grateful for any hint.

Cheers

/Stefan

_______________________________________________
Cryptlib mailing list
[email protected] via Mail: [email protected]
Archive: ftp://ftp.franken.de/pub/crypt/cryptlib/archives/
http://news.gmane.org/gmane.comp.encryption.cryptlib
Posts from non-subscribed addresses are blocked to prevent spam, please
subscribe in order to post messages.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.