./configure
make
sudo make install
Due to the fact I'm Mac-User I had a problem with make, but I solved it using make osx instead of make.
After performing
make osx
I get 5 errros and some warnings, for example:
cv_cert.c:551:11: error: implicit declaration of function 'RSA_set0_key' is invalid in C99 [-Werror,-Wimplicit-function-declaration] check(RSA_set0_key(rsa,
For more errors and warnings see below my post.
For our project we need the branch 1.1.2. My gcc-Version is "Apple clang version 13.1.6 (clang-1316.0.21.2)". I have already installed all necessary libriaries needed to run the repository: pkg-config, swig, autoreconf, help2man, gengentopt, openssl, libcrypto.
for cert in ff3d20d2; do /usr/bin/install -c -m 644 ./${cert} "/Users/orszula/mpse/openpace/openpace-1.1.2_osx/Library/OpenPACE/etc/eac/x509"; done
../.././install-sh -c -d "/Users/orszula/mpse/openpace/openpace-1.1.2_osx/Library/OpenPACE/etc/eac/cvc"
for cert in DECVCAeID00102 DECVCAEPASS00102 DECVCAeSign00102; do /usr/bin/install -c -m 644 ./${cert} "/Users/orszula/mpse/openpace/openpace-1.1.2_osx/Library/OpenPACE/etc/eac/cvc"; done
CC libeac_la-ca_lib.lo
CC libeac_la-cv_cert.lo
cv_cert.c:551:11: error: implicit declaration of function 'RSA_set0_key' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
check(RSA_set0_key(rsa,
^
cv_cert.c:551:11: note: did you mean 'RSA_check_key'?
/Users/orszula/mpse/openpace/openpace-1.1.2_osx/Library/OpenPACE/include/openssl/rsa.h:333:5: note: 'RSA_check_key' declared here
int RSA_check_key(const RSA *);
^
cv_cert.c:1335:5: error: implicit declaration of function 'RSA_get0_key' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
RSA_get0_key(rsa, &n, &e, NULL);
^
cv_cert.c:1335:5: note: did you mean 'RSA_check_key'?
/Users/orszula/mpse/openpace/openpace-1.1.2_osx/Library/OpenPACE/include/openssl/rsa.h:333:5: note: 'RSA_check_key' declared here
int RSA_check_key(const RSA *);
^
cv_cert.c:1364:5: error: implicit declaration of function 'DH_get0_key' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
DH_get0_key(dh, &pub_key, NULL);
^
cv_cert.c:1370:9: error: implicit declaration of function 'DH_get0_pqg' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
DH_get0_pqg(dh, &p, NULL, &g);
^
cv_cert.c:1489:20: error: implicit declaration of function 'ASN1_STRING_get0_data' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
if (!BN_bin2bn(ASN1_STRING_get0_data(p), ASN1_STRING_length(p), p_bn) ||
^
cv_cert.c:1489:20: note: did you mean 'ASN1_STRING_data'?
/Users/orszula/mpse/openpace/openpace-1.1.2_osx/Library/OpenPACE/include/openssl/asn1.h:812:16: note: 'ASN1_STRING_data' declared here
unsigned char *ASN1_STRING_data(ASN1_STRING *x);
^
cv_cert.c:1489:20: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'const unsigned char *' [-Wint-conversion]
if (!BN_bin2bn(ASN1_STRING_get0_data(p), ASN1_STRING_length(p), p_bn) ||
^~~~~~~~~~~~~~~~~~~~~~~~
/Users/orszula/mpse/openpace/openpace-1.1.2_osx/Library/OpenPACE/include/openssl/bn.h:493:40: note: passing argument to parameter 's' here
BIGNUM *BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret);
^
cv_cert.c:1490:20: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'const unsigned char *' [-Wint-conversion]
!BN_bin2bn(ASN1_STRING_get0_data(a), ASN1_STRING_length(a), a_bn) ||
^~~~~~~~~~~~~~~~~~~~~~~~
/Users/orszula/mpse/openpace/openpace-1.1.2_osx/Library/OpenPACE/include/openssl/bn.h:493:40: note: passing argument to parameter 's' here
BIGNUM *BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret);
^
cv_cert.c:1491:20: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'const unsigned char *' [-Wint-conversion]
!BN_bin2bn(ASN1_STRING_get0_data(b), ASN1_STRING_length(b), b_bn))
^~~~~~~~~~~~~~~~~~~~~~~~
/Users/orszula/mpse/openpace/openpace-1.1.2_osx/Library/OpenPACE/include/openssl/bn.h:493:40: note: passing argument to parameter 's' here
BIGNUM *BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret);
^
cv_cert.c:1500:20: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'const unsigned char *' [-Wint-conversion]
if (!BN_bin2bn(ASN1_STRING_get0_data(cofactor), ASN1_STRING_length(cofactor), cofactor_bn) ||
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/orszula/mpse/openpace/openpace-1.1.2_osx/Library/OpenPACE/include/openssl/bn.h:493:40: note: passing argument to parameter 's' here
BIGNUM *BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret);
^
cv_cert.c:1501:20: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'const unsigned char *' [-Wint-conversion]
!BN_bin2bn(ASN1_STRING_get0_data(base_order), ASN1_STRING_length(base_order), order_bn))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/orszula/mpse/openpace/openpace-1.1.2_osx/Library/OpenPACE/include/openssl/bn.h:493:40: note: passing argument to parameter 's' here
BIGNUM *BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret);
^
cv_cert.c:1508:47: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'const unsigned char *' [-Wint-conversion]
if (!EC_POINT_oct2point(group, generator, ASN1_STRING_get0_data(base),
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/orszula/mpse/openpace/openpace-1.1.2_osx/Library/OpenPACE/include/openssl/ec.h:587:45: note: passing argument to parameter 'buf' here
const unsigned char *buf, size_t len, BN_CTX *ctx);
^
cv_cert.c:1532:51: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'const unsigned char *' [-Wint-conversion]
if (!EC_POINT_oct2point(group, pub_point, ASN1_STRING_get0_data(pub),
^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/orszula/mpse/openpace/openpace-1.1.2_osx/Library/OpenPACE/include/openssl/ec.h:587:45: note: passing argument to parameter 'buf' here
const unsigned char *buf, size_t len, BN_CTX *ctx);
^
7 warnings and 5 errors generated.
make[5]: *** [libeac_la-cv_cert.lo] Error 1
make[4]: *** [install-recursive] Error 1
make[3]: *** [install] Error 2
make[2]: *** [install-recursive] Error 1
make[1]: *** [osx] Error 2
make: *** [osx] Error 2