cisco / libest

Other
98 stars 94 forks source link

Is the libest able to be built with libssl.so.3.1.0? #131

Open jerrybean17 opened 9 months ago

jerrybean17 commented 9 months ago

I have built the libest with libssl.so.1.0.0. But I couldn't build it with libssl.so.3.1.0.

Is it able to be built with libssl.so.3.1.0? How can I build it with libssl.so.3.1.0.

$ make
...
(omit)
...
/tmp/libest-3.2.0/example/client/estclient.c:1283: undefined reference to `FIPS_mode_set'
/tmp/libest-3.2.0/src/est/.libs/libest.a(est_client.o): In function `est_client_enroll_csr_internal':
/tmp/libest-3.2.0/src/est/est_client.c:3676: undefined reference to `FIPS_mode'
/tmp/libest-3.2.0/src/est/.libs/libest.a(est_client.o): In function `est_client_enroll_internal':
/tmp/libest-3.2.0/src/est/est_client.c:3179: undefined reference to `FIPS_mode'
/tmp/libest-3.2.0/src/est/.libs/libest.a(est_client.o): In function `est_client_reenroll':
/tmp/libest-3.2.0/src/est/est_client.c:3590: undefined reference to `FIPS_mode'
/tmp/libest-3.2.0/src/est/.libs/libest.a(est_server.o): In function `est_server_set_auth_mode':
/tmp/libest-3.2.0/src/est/est_server.c:3336: undefined reference to `FIPS_mode'
collect2: error: ld returned 1 exit status
Makefile:404: recipe for target 'estclient' failed
make[2]: *** [estclient] Error 1
make[2]: Leaving directory '/tmp/libest-3.2.0/example/client'
Makefile:395: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/tmp/libest-3.2.0'
make: *** [libest] Error 2
kissen commented 7 months ago

You could try pulling in this patch I have provided as a pull request.

https://github.com/cisco/libest/pull/124