[GH-ISSUE #29] openssl-1.1.0 not supported #17

Closed
opened 2026-02-25 22:30:46 +03:00 by kerem · 12 comments
Owner

Originally created by @chipitsine on GitHub (Feb 13, 2018).
Original GitHub issue: https://github.com/evgeny-gridasov/openvpn-otp/issues/29

/tmp/cc6coz4M.o: In function `main':
/*/xxx/openvpn-otp/conftest.c:34: undefined reference to `HMAC_CTX_init'
collect2: error: ld returned 1 exit status
configure:16580: $? = 1

HMAC_CTX_init() was replaced with HMAC_CTX_reset() in OpenSSL versions 1.1.0.

Originally created by @chipitsine on GitHub (Feb 13, 2018). Original GitHub issue: https://github.com/evgeny-gridasov/openvpn-otp/issues/29 ``` /tmp/cc6coz4M.o: In function `main': /*/xxx/openvpn-otp/conftest.c:34: undefined reference to `HMAC_CTX_init' collect2: error: ld returned 1 exit status configure:16580: $? = 1 ``` HMAC_CTX_init() was replaced with HMAC_CTX_reset() in OpenSSL versions 1.1.0.
kerem closed this issue 2026-02-25 22:30:46 +03:00
Author
Owner

@ciaccotaco commented on GitHub (Oct 31, 2018):

I am also experiencing this problem. When executing:
./configure --prefix=/usr --with-openvpn-plugin-dir=/usr/lib/openvpn

It returns the error:
checking for HMAC_CTX_init in -lcrypto... no
configure: error: OpenSSL libraries required

I think the issue is the dependency on autoreconf, which has issues with OpenSSL 1.1.0

<!-- gh-comment-id:434559195 --> @ciaccotaco commented on GitHub (Oct 31, 2018): I am also experiencing this problem. When executing: `./configure --prefix=/usr --with-openvpn-plugin-dir=/usr/lib/openvpn` It returns the error: `checking for HMAC_CTX_init in -lcrypto... no` `configure: error: OpenSSL libraries required` I think the issue is the dependency on autoreconf, which has issues with OpenSSL 1.1.0
Author
Owner

@RamonBeast commented on GitHub (Nov 27, 2018):

How did you manage to solve it? I'm having the same issue on Ubuntu 18

<!-- gh-comment-id:442009687 --> @RamonBeast commented on GitHub (Nov 27, 2018): How did you manage to solve it? I'm having the same issue on Ubuntu 18
Author
Owner

@evgeny-gridasov commented on GitHub (Nov 27, 2018):

I have a working solution, will commit soon.

<!-- gh-comment-id:442084502 --> @evgeny-gridasov commented on GitHub (Nov 27, 2018): I have a working solution, will commit soon.
Author
Owner

@evgeny-gridasov commented on GitHub (Nov 27, 2018):

Basically OpenSSL 1.1.0 completely redefined the API. Will have to have 2 blocks of code to deal with pre 1.1.0 and 1.1.0 API.

<!-- gh-comment-id:442086350 --> @evgeny-gridasov commented on GitHub (Nov 27, 2018): Basically OpenSSL 1.1.0 completely redefined the API. Will have to have 2 blocks of code to deal with pre 1.1.0 and 1.1.0 API.
Author
Owner

@evgeny-gridasov commented on GitHub (Nov 27, 2018):

I've pushed the changes, could please somebody code review / test build on 14.04 and 18.04? Works fine for me but It would be great if somebody else could reproduce that.

<!-- gh-comment-id:442093026 --> @evgeny-gridasov commented on GitHub (Nov 27, 2018): I've pushed the changes, could please somebody code review / test build on 14.04 and 18.04? Works fine for me but It would be great if somebody else could reproduce that.
Author
Owner

@ciaccotaco commented on GitHub (Nov 27, 2018):

I have tested successfully. Thank you so much!

Software:
Ubuntu 18.04.1 LTS (GNU/Linux 4.15.0-1031-azure x86_64)
OpenVPN 2.4.4-2ubuntu1.1
LDAP Plugin: https://github.com/guywyers/openvpn-auth-ldap/blob/master/auth-ldap.conf
Google Authenticator: https://github.com/google/google-authenticator-libpam/

<!-- gh-comment-id:442197212 --> @ciaccotaco commented on GitHub (Nov 27, 2018): I have tested successfully. Thank you so much! Software: Ubuntu 18.04.1 LTS (GNU/Linux 4.15.0-1031-azure x86_64) OpenVPN 2.4.4-2ubuntu1.1 LDAP Plugin: https://github.com/guywyers/openvpn-auth-ldap/blob/master/auth-ldap.conf Google Authenticator: https://github.com/google/google-authenticator-libpam/
Author
Owner

@evgeny-gridasov commented on GitHub (Nov 28, 2018):

Thanks @ciacco206 I'll wait for a couple of weeks for more feedback and will close this issue then.

<!-- gh-comment-id:442267392 --> @evgeny-gridasov commented on GitHub (Nov 28, 2018): Thanks @ciacco206 I'll wait for a couple of weeks for more feedback and will close this issue then.
Author
Owner

@evgeny-gridasov commented on GitHub (Nov 28, 2018):

@chipitsine could you please test?

<!-- gh-comment-id:442267807 --> @evgeny-gridasov commented on GitHub (Nov 28, 2018): @chipitsine could you please test?
Author
Owner

@RamonBeast commented on GitHub (Nov 28, 2018):

Thanks @evgeny-gridasov just tested and seems to work for me too!

Ubuntu 18.04.1 LTS

<!-- gh-comment-id:442321032 --> @RamonBeast commented on GitHub (Nov 28, 2018): Thanks @evgeny-gridasov just tested and seems to work for me too! Ubuntu 18.04.1 LTS
Author
Owner

@ciaccotaco commented on GitHub (Nov 29, 2018):

Not sure if you will consider this within the scope of your project, but I thought I'd mention it just in case. I tried installing this on my Raspberry Pi. The code compiles without issue, but when OpenVPN starts up, it fails with this error:

PLUGIN_INIT: could not load plugin shared object /usr/lib/openvpn/openvpn-otp.so: /usr/lib/openvpn/openvpn-otp.so: undefined symbol: EVP_MD_CTX_free: No such file or directory (errno=2)
Exiting due to fatal error

OS Image: Raspbian Stretch Lite 2018-10-09
OpenSSL: 1.1.0f-3+deb9u2
OpenVPN: 2.4.0-6+deb9u2

EDIT: Disregard - I spoke before exhausting all the troubleshooting options. :)
After I typed up the versioning above, I decided to check out what was available outside the repositories. I manually compiled the latest version of OpenVPN (v2.4.6) and it successfully works with your plugin.

<!-- gh-comment-id:442696402 --> @ciaccotaco commented on GitHub (Nov 29, 2018): Not sure if you will consider this within the scope of your project, but I thought I'd mention it just in case. I tried installing this on my Raspberry Pi. The code compiles without issue, but when OpenVPN starts up, it fails with this error: ``` PLUGIN_INIT: could not load plugin shared object /usr/lib/openvpn/openvpn-otp.so: /usr/lib/openvpn/openvpn-otp.so: undefined symbol: EVP_MD_CTX_free: No such file or directory (errno=2) Exiting due to fatal error ``` OS Image: Raspbian Stretch Lite 2018-10-09 OpenSSL: 1.1.0f-3+deb9u2 OpenVPN: 2.4.0-6+deb9u2 **EDIT: Disregard** - I spoke before exhausting all the troubleshooting options. :) After I typed up the versioning above, I decided to check out what was available outside the repositories. I manually compiled the latest version of OpenVPN (v2.4.6) and it successfully works with your plugin.
Author
Owner

@evgeny-gridasov commented on GitHub (Nov 29, 2018):

@ciacco206 Happy that it worked for you. I'll add a check for EVP functions in configure script to fail early.

<!-- gh-comment-id:442715379 --> @evgeny-gridasov commented on GitHub (Nov 29, 2018): @ciacco206 Happy that it worked for you. I'll add a check for EVP functions in configure script to fail early.
Author
Owner

@evgeny-gridasov commented on GitHub (Jan 24, 2019):

Looks like no complaints and everybody is happy. Closing the issue.

<!-- gh-comment-id:457077938 --> @evgeny-gridasov commented on GitHub (Jan 24, 2019): Looks like no complaints and everybody is happy. Closing the issue.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/openvpn-otp#17
No description provided.