[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openssl-users
Subject:    Re: Macro definitions for AdNovum's pkcs11 openssl extension
From:       Igal Ore <iore () skynet ! be>
Date:       2004-01-23 9:10:51
Message-ID: 4010E51B.5060405 () skynet ! be
[Download RAW message or body]

Martin Buechler wrote:

> Hi,
>
> Just trying to get openssl using various PKCS#11 libraries. I adapted
> the Makefile in openssl/apps to include AdNovum's PKCS#11 code from 
> the contirb section of openssl.org, but there a lots of macro 
> definitions missing. Searching the web did not yield anything helpful.
> Am I missing here something or is it just, that the header files 
> containing those definitions are absent?
>
> Thanks in advance
>
> Martin
>
>
> root@ardour apps]# make
> make[1]: Wechsel in das Verzeichnis Verzeichnis
> »/usr/local/src/openssl-0.9.7c«
> making all in apps...
> make[2]: Wechsel in das Verzeichnis Verzeichnis
> »/usr/local/src/openssl-0.9.7c/apps«
> gcc -DMONOLITH -I.. -I../include  -fPIC -DOPENSSL_THREADS -D_REENTRANT
> -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -DL_ENDIAN -DTERMIO -O3
> -fomit-frame-pointer -march=athlon-tbird -Wall -DSHA1_ASM -DMD5_ASM
> -DRMD160_ASM   -c -o p11_drv.o p11_drv.c
> p11_drv.c: In function `PKCS11_new':
> p11_drv.c:147: warning: implicit declaration of function `PKCS11err'
> p11_drv.c:147: `PKCS11_F_PKCS11_NEW' undeclared (first use in this 
> function)
> p11_drv.c:147: (Each undeclared identifier is reported only once
> p11_drv.c:147: for each function it appears in.)
> p11_drv.c:147: `PKCS11_R_OUT_OF_MEMORY' undeclared (first use in this
> function)
> p11_drv.c: In function `PKCS11_setDoLogin':
> p11_drv.c:237: `PKCS11_F_PKCS11_SETDOLOGIN' undeclared (first use in
> this functi
> on)
> p11_drv.c:237: `PKCS11_R_NULL_POINTER_PROVIDED' undeclared (first use in
> this function)
> p11_drv.c: In function `PKCS11_setPinCallback':
> p11_drv.c:267: `PKCS11_F_PKCS11_SETPINCALLBACK' undeclared (first use in
> this function)
> p11_drv.c:267: `PKCS11_R_NULL_POINTER_PROVIDED' undeclared (first use in
> this function)
> p11_drv.c: In function `PKCS11_get_cert':
> p11_drv.c:361: `PKCS11_F_PKCS11_GET_CERT' undeclared (first use in this
> function)
> p11_drv.c:361: `PKCS11_R_NULL_POINTER_PROVIDED' undeclared (first use in
> this function)
> p11_drv.c:403: `PKCS11_R_BAD_CERTIFICATE' undeclared (first use in this
> function)
> p11_drv.c: In function `PKCS11_get_private_key':
> p11_drv.c:440: `PKCS11_F_PKCS11_GET_PRIVATE_KEY' undeclared (first use
> in this function)
> p11_drv.c:440: `PKCS11_R_NULL_POINTER_PROVIDED' undeclared (first use in
> this function)
> make[2]: *** [p11_drv.o] Fehler 1
> make[2]: Verlassen des Verzeichnisses Verzeichnis
> »/usr/local/src/openssl-0.9.7c/apps«
> make[1]: *** [sub_all] Fehler 1
> make[1]: Verlassen des Verzeichnisses Verzeichnis
> »/usr/local/src/openssl-0.9.7c«
> make: *** [top] Fehler 2
>
>
>
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    openssl-users@openssl.org
> Automated List Manager                           majordomo@openssl.org
>
>
Did you included pkcs11.h , pkcs11f.h and pkcs11d.h ? If not than here 
you answer ...

Those definitions are direct definition from PKCS#11 standard (be 
carefull about versions of standard , if AdNovum's PKCS#11 is 2.11 and 
you will take beta of 2.2 from rsalab site than expect troubles)
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majordomo@openssl.org
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic