Re: Problems connecting to database through ODBC - Mac with Java bindings

Peter Gutmann <[email protected]>
Newsgroups gmane.comp.encryption.cryptlib
Message-ID <[email protected]>
Stefan Santesson <[email protected]> writes:

>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

If you're sure that everything's set up correctly then there are two options,
the first is to turn on logging for the ODBC connection and see what's
happening, the other (and you need to do this from C) is to put a breakpoint
in initFunction() in keyset/dbx_misc.c to see where the problem is.  cryptlib
returns detailed diagnostics (internally), but since this is a create-object
call and the object creation has failed there's no object present to read the
diagnostic data from afterwards.

Peter.

_______________________________________________
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.