|
Packit |
b00eeb |
GCR is a library for displaying certificates, and crypto UI, accessing
|
|
Packit |
b00eeb |
key stores. It also provides the viewer for crypto files on the GNOME
|
|
Packit |
b00eeb |
desktop.
|
|
Packit |
b00eeb |
|
|
Packit |
b00eeb |
GCK is a library for accessing PKCS#11 modules like smart cards, in a
|
|
Packit |
b00eeb |
(G)object oriented way.
|
|
Packit |
b00eeb |
|
|
Packit |
b00eeb |
|
|
Packit |
b00eeb |
DEBUG TRACING
|
|
Packit |
b00eeb |
==============
|
|
Packit |
b00eeb |
|
|
Packit |
b00eeb |
The Gcr and Gck libraries contain statements which help debug flow
|
|
Packit |
b00eeb |
and logic. In many cases these help you track down problems.
|
|
Packit |
b00eeb |
|
|
Packit |
b00eeb |
Use the environment variable GCR_DEBUG='all' or GCR_HELP='xxx' to
|
|
Packit |
b00eeb |
display either all messages or a specific category of debug messages.
|
|
Packit |
b00eeb |
To figure out what you can use in place of the 'xxx' category above,
|
|
Packit |
b00eeb |
use GCR_DEBUG='help' and you'll see a list of all the messages.
|
|
Packit |
b00eeb |
|
|
Packit |
b00eeb |
Example to display all debug messages:
|
|
Packit |
b00eeb |
|
|
Packit |
b00eeb |
$ GCR_DEBUG=all gcr-viewer /path/to/certificate.crt
|
|
Packit |
b00eeb |
(gcr-viewer:9418): Gcr-DEBUG: gcr_pkcs11_initialize_async: starting initialize of registered modules
|
|
Packit |
b00eeb |
...
|
|
Packit |
b00eeb |
|
|
Packit |
b00eeb |
Example to display the various debug categories:
|
|
Packit |
b00eeb |
|
|
Packit |
b00eeb |
$ GCR_DEBUG=help gcr-viewer /path/to/certificate.crt
|
|
Packit |
b00eeb |
Supported debug values: library certificate-chain parse gnupg trust import key prompt all help
|
|
Packit |
b00eeb |
|
|
Packit |
b00eeb |
Example to display debug messages for a specific category:
|
|
Packit |
b00eeb |
|
|
Packit |
b00eeb |
$ GCR_DEBUG=library gcr-viewer /path/to/certificate.crt
|
|
Packit |
b00eeb |
(gcr-viewer:9503): Gcr-DEBUG: gcr_pkcs11_initialize_async: starting initialize of registered modules
|
|
Packit |
b00eeb |
...
|
|
Packit |
b00eeb |
|
|
Packit |
b00eeb |
If you wish to permanently enable certain debug messages, include compiler
|
|
Packit |
b00eeb |
directives like this when configuring this library:
|
|
Packit |
b00eeb |
|
|
Packit |
b00eeb |
$ CFLAGS='-DGCR_DEBUG=library' ./configure ...
|
|
Packit |
b00eeb |
|
|
Packit |
b00eeb |
For the Gck debug messages simply replace 'GCR_DEBUG' with 'GCK_DEBUG'
|
|
Packit |
b00eeb |
in the above examples.
|