Subject: Re: Compiling OpenSC
To: None <netbsd@purk.ee>
From: None <netbsd@purk.ee>
List: netbsd-help
Date: 05/02/2004 18:23:49
Finally i got this stuff to compile if i commented out:

//#if OPENSSL_VERSION_NUMBER >= 0x00907000L
//#define des_cleanse(k)        OPENSSL_cleanse(k.ks, sizeof(k.ks))
//#else
//#define DES_cleanse(k)        memset(&k, 0, sizeof(k))
//#define DES_set_key_unchecked(a,b) DES_set_key_unchecked(a,*b)
//#define DES_ecb3_encrypt(a,b,c,d,e,f) DES_ecb3_encrypt(a,b,*c,*d,*e,f)
//#endif

Any thoughts?It compiles on any OS without hack (not sure abour OpenBSD).

Greetings






Quoting netbsd@purk.ee:

> 
> 
> Hi,
> 
> I'm trying to compile OpenSC patched version for Estonian ID card without
> much
> luck.
> PC/SC lite compiled fine.It configures fine in current and stable but make
> ends
> right here:
> What i'm missing here?
> 
> Thanks in advance!
> 
>  ./configure --prefix=/usr/pkg --sysconfdir=/usr/pkg/etc
> --with-pcsclite=/usr/local
> 
> card-gpk.c: In function `gpk_compute_crycks':
> card-gpk.c:811: error: `des_key_schedule' undeclared (first use in this
> function)
> card-gpk.c:811: error: (Each undeclared identifier is reported only once
> card-gpk.c:811: error: for each function it appears in.)
> card-gpk.c:811: error: syntax error before "k1"
> card-gpk.c:816: warning: implicit declaration of function
> `des_set_key_unchecked'
> card-gpk.c:816: error: `des_cblock' undeclared (first use in this function)
> card-gpk.c:816: error: syntax error before ')' token
> card-gpk.c:817: error: syntax error before ')' token
> card-gpk.c:817: error: `k2' undeclared (first use in this function)
> card-gpk.c:837: warning: implicit declaration of function `des_ecb3_encrypt'
> card-gpk.c:837: error: syntax error before ')' token
> card-gpk.c:849: error: `k1' undeclared (first use in this function)
> card-gpk.c: In function `gpk_set_filekey':
> card-gpk.c:968: error: `des_key_schedule' undeclared (first use in this
> function)
> card-gpk.c:968: error: syntax error before "k1"
> card-gpk.c:969: error: `des_cblock' undeclared (first use in this function)
> card-gpk.c:972: error: syntax error before ')' token
> card-gpk.c:973: error: syntax error before ')' token
> card-gpk.c:973: error: `k2' undeclared (first use in this function)
> card-gpk.c:975: error: syntax error before ')' token
> card-gpk.c:975: error: syntax error before ')' token
> card-gpk.c:977: error: syntax error before ')' token
> card-gpk.c:977: error: syntax error before ')' token
> card-gpk.c:977: error: `k1' undeclared (first use in this function)
> card-gpk.c:984: error: syntax error before ')' token
> card-gpk.c:985: error: syntax error before ')' token
> card-gpk.c:987: error: syntax error before ')' token
> card-gpk.c:989: error: `out' undeclared (first use in this function)
> 
> 
> 
> 
> ----------------------------------------------------------------
> Powered By "NetBSD" http://www.netbsd.org
> 




----------------------------------------------------------------
Powered By "NetBSD" http://www.netbsd.org