# Ngx\_event\_openssl\_stapling.c vs. openssl version

**URL:** <https://www.ruby-forum.com/t/ngx-event-openssl-stapling-c-vs-openssl-version/228814>\
**Category:** NGINX\
**Created:** [May 8, 2013, 7:18pm UTC](https://www.ruby-forum.com/t/ngx-event-openssl-stapling-c-vs-openssl-version/228814 "2013-05-08T19:18:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alder\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/71c47a/32.png) [@Alder\_N](https://www.ruby-forum.com/u/Alder_N)\
**Post date:** [May 8, 2013, 7:18pm UTC](https://www.ruby-forum.com/t/ngx-event-openssl-stapling-c-vs-openssl-version/228814/1 "2013-05-08T19:18:00Z")

</div>

There seems to be a version dependency on opnessl in ngnix1.4.  
I can build it on one platform but not the other where there’s slightly  
older version of openssl header files. Specifically,  
ngx\_event\_openssl\_stapling.c references some constants which are  
only defined in newer version of tls1.h. It would be nice to make the  
code working across different versions of libraries. Is that a known  
issue?

- Alder

---

<div class="post-metadata">

**Author:** ![Alder\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/71c47a/32.png) [@Alder\_N](https://www.ruby-forum.com/u/Alder_N)\
**Post date:** [May 8, 2013, 7:36pm UTC](https://www.ruby-forum.com/t/ngx-event-openssl-stapling-c-vs-openssl-version/228814/2 "2013-05-08T19:36:07Z")

</div>

Hello!

On Wed, May 08, 2013 at 10:17:23AM -0700, Alder N. wrote:

> There seems to be a version dependency on opnessl in ngnix1.4.  
> I can build it on one platform but not the other where there’s slightly  
> older version of openssl header files. Specifically,  
> ngx\_event\_openssl\_stapling.c references some constants which are  
> only defined in newer version of tls1.h. It would be nice to make the  
> code working across different versions of libraries. Is that a known issue?

Are you seeing build failures? If yes, with which version of  
OpenSSL?

It is expected to always compile fine, degrading to “ssl\_stapling  
ignored, not supported” warnings if OpenSSL is too old.

–  
Maxim D.

> **[nginx: donation](http://nginx.org/en/donation.html)**

---

<div class="post-metadata">

**Author:** ![Alder\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/71c47a/32.png) [@Alder\_N](https://www.ruby-forum.com/u/Alder_N)\
**Post date:** [May 8, 2013, 7:51pm UTC](https://www.ruby-forum.com/t/ngx-event-openssl-stapling-c-vs-openssl-version/228814/3 "2013-05-08T19:51:19Z")

</div>

It’s compilation error. I don’t have the exact error message at hand,  
but it’s referencing a macro that’s not defined in newer versions  
of tls1.h. but not in slightly older versions of tls1.h.
