<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:18:21 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CDRIVER-3541] SSL_OP_NO_RENEGOTIATION undefined in mongoc-openssl.c</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-3541</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;I&apos;m trying to install the mongodb PHP extension (which uses libmongoc @ 7e80159).&lt;/p&gt;

&lt;p&gt;I install these Alpine packages with apk add:&lt;/p&gt;

&lt;p&gt;libgcc libstdc++ icu-libs libressl3.0-libcrypto libressl3.0-libssl libressl3.0-libtls db libsasl snappy m4 libbz2 perl autoconf pkgconf cyrus-sasl-dev dpkg dpkg-dev libmagic file binutils gmp isl libgomp libatomic mpfr4 mpc1 gcc musl-dev libc-dev g++ icu icu-dev libressl-dev make re2c snappy-dev zlib-dev&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;The compilation fails with this error:&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;/bin/sh /tmp/pear/temp/pear-build-defaultuserHBNFPP/mongodb-1.7.2/libtool --mode=compile cc -DBSON_COMPILATION -DMONGOC_COMPILATION -Isrc/libmongoc/src/libmongoc/src/mongoc/ -I/tmp/pear/temp/mongodb/src/libmongoc/src/libmongoc/src/mongoc/ -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuserHBNFPP/mongodb-1.7.2/include -I/tmp/pear/temp/pear-build-defaultuserHBNFPP/mongodb-1.7.2/main -I/tmp/pear/temp/mongodb -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/tmp/pear/temp/mongodb/src/libmongoc/src/common/ -I/tmp/pear/temp/mongodb/src/libmongoc/src/libbson/src/ -I/tmp/pear/temp/mongodb/src/libmongoc/src/libbson/src/jsonsl/ -I/tmp/pear/temp/mongodb/src/libmongoc/src/libmongoc/src/ -I/tmp/pear/temp/mongodb/src/libmongocrypt/src/ -I/tmp/pear/temp/mongodb/src/libmongocrypt/kms-message/src/ -I/tmp/pear/temp/mongodb/src/libmongocrypt-compat/ -I/tmp/pear/temp/mongodb/src/BSON/ -I/tmp/pear/temp/mongodb/src/MongoDB/ -I/tmp/pear/temp/mongodb/src/MongoDB/Exception/ -I/tmp/pear/temp/mongodb/src/MongoDB/Monitoring/ -I/tmp/pear/temp/mongodb/src/contrib/ -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/mongodb/src/libmongoc/src/libmongoc/src/mongoc/mongoc-openssl.c -o src/libmongoc/src/libmongoc/src/mongoc/mongoc-openssl.lo cc -DBSON_COMPILATION -DMONGOC_COMPILATION -Isrc/libmongoc/src/libmongoc/src/mongoc/ -I/tmp/pear/temp/mongodb/src/libmongoc/src/libmongoc/src/mongoc/ -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuserHBNFPP/mongodb-1.7.2/include -I/tmp/pear/temp/pear-build-defaultuserHBNFPP/mongodb-1.7.2/main -I/tmp/pear/temp/mongodb -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/tmp/pear/temp/mongodb/src/libmongoc/src/common/ -I/tmp/pear/temp/mongodb/src/libmongoc/src/libbson/src/ -I/tmp/pear/temp/mongodb/src/libmongoc/src/libbson/src/jsonsl/ -I/tmp/pear/temp/mongodb/src/libmongoc/src/libmongoc/src/ -I/tmp/pear/temp/mongodb/src/libmongocrypt/src/ -I/tmp/pear/temp/mongodb/src/libmongocrypt/kms-message/src/ -I/tmp/pear/temp/mongodb/src/libmongocrypt-compat/ -I/tmp/pear/temp/mongodb/src/BSON/ -I/tmp/pear/temp/mongodb/src/MongoDB/ -I/tmp/pear/temp/mongodb/src/MongoDB/Exception/ -I/tmp/pear/temp/mongodb/src/MongoDB/Monitoring/ -I/tmp/pear/temp/mongodb/src/contrib/ -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/mongodb/src/libmongoc/src/libmongoc/src/mongoc/mongoc-openssl.c -fPIC -DPIC -o src/libmongoc/src/libmongoc/src/mongoc/.libs/mongoc-openssl.o&lt;br/&gt;
/tmp/pear/temp/mongodb/src/libmongoc/src/libmongoc/src/mongoc/mongoc-openssl.c: In function &apos;_mongoc_openssl_ctx_new&apos;:&lt;br/&gt;
/tmp/pear/temp/mongodb/src/libmongoc/src/libmongoc/src/mongoc/mongoc-openssl.c:498:23: error: &apos;SSL_OP_NO_RENEGOTIATION&apos; undeclared (first use in this function); did you mean &apos;SSL_R_NO_RENEGOTIATION&apos;?&lt;br/&gt;
 498 | ssl_ctx_options |= SSL_OP_NO_RENEGOTIATION;&lt;/p&gt;
&lt;div class=&apos;table-wrap&apos;&gt;
&lt;table class=&apos;confluenceTable&apos;&gt;&lt;tbody&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; ^~~~~~~~~~~~~~~~~~~~~~~&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; SSL_R_NO_RENEGOTIATION&lt;br/&gt;
/tmp/pear/temp/mongodb/src/libmongoc/src/libmongoc/src/mongoc/mongoc-openssl.c:498:23: note: each undeclared identifier is reported only once for each function it appears in make: *** &lt;span class=&quot;error&quot;&gt;&amp;#91;Makefile:443: src/libmongoc/src/libmongoc/src/mongoc/mongoc-openssl.lo&amp;#93;&lt;/span&gt; Error 1&lt;br/&gt;
ERROR: `make&apos; failed&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;


&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;maybe adding an #ifdef SSL_OP_NO_RENEGOTIATION in addition to #if OPENSSL_VERSION_NUMBER &amp;gt;= 0x10101000L should sove this issue&lt;/p&gt;</description>
                <environment>Docker image php:7.4-cli-alpine3.11</environment>
        <key id="1154708">CDRIVER-3541</key>
            <summary>SSL_OP_NO_RENEGOTIATION undefined in mongoc-openssl.c</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="13201">Fixed</resolution>
                                        <assignee username="kevin.albertson@mongodb.com">Kevin Albertson</assignee>
                                    <reporter username="mlocati@gmail.com">Michele Locati</reporter>
                        <labels>
                    </labels>
                <created>Sun, 16 Feb 2020 13:43:19 +0000</created>
                <updated>Sat, 28 Oct 2023 11:28:54 +0000</updated>
                            <resolved>Mon, 24 Feb 2020 15:23:37 +0000</resolved>
                                    <version>1.16.0</version>
                                    <fixVersion>1.16.2</fixVersion>
                                    <component>libmongoc</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="2906923" author="mlocati@gmail.com" created="Tue, 25 Feb 2020 10:12:13 +0000"  >&lt;p&gt;Yep, everything seems to work just fine now (see &lt;a href=&quot;https://github.com/mlocati/docker-php-extension-installer/pull/123&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mlocati/docker-php-extension-installer/pull/123&lt;/a&gt;), thanks! &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/thumbs_up.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                            <comment id="2906907" author="andreas.braun" created="Tue, 25 Feb 2020 09:50:15 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=mlocati%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;mlocati@gmail.com&quot;&gt;mlocati@gmail.com&lt;/a&gt;: Version 1.7.3 of the PHP extension was just released and pushed to PECL. Please let us know if there are any remaining issues. Thanks!&lt;/p&gt;</comment>
                            <comment id="2904682" author="kevin.albertson" created="Mon, 24 Feb 2020 15:23:32 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=mlocati%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;mlocati@gmail.com&quot;&gt;mlocati@gmail.com&lt;/a&gt; the C driver 1.16.2 should be released today, and the corresponding PHP extension release this week.&lt;/p&gt;</comment>
                            <comment id="2887823" author="xgen-internal-githook" created="Fri, 21 Feb 2020 01:51:50 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;kevinAlbs&apos;, &apos;name&apos;: &apos;Kevin Albertson&apos;, &apos;email&apos;: &apos;kevin.albertson@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3541&quot; title=&quot;SSL_OP_NO_RENEGOTIATION undefined in mongoc-openssl.c&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-3541&quot;&gt;&lt;del&gt;CDRIVER-3541&lt;/del&gt;&lt;/a&gt; fix SSL renegotiation check&lt;br/&gt;
Branch: r1.16&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/8e3dee49f0b44c664563aeea999f24f6a3f4620a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/8e3dee49f0b44c664563aeea999f24f6a3f4620a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2886686" author="xgen-internal-githook" created="Thu, 20 Feb 2020 15:38:51 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kevin Albertson&apos;, &apos;username&apos;: &apos;kevinAlbs&apos;, &apos;email&apos;: &apos;kevin.albertson@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3541&quot; title=&quot;SSL_OP_NO_RENEGOTIATION undefined in mongoc-openssl.c&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-3541&quot;&gt;&lt;del&gt;CDRIVER-3541&lt;/del&gt;&lt;/a&gt; fix SSL renegotiation check&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/6f0822714119a07402a9f91d199526a183ca664b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/6f0822714119a07402a9f91d199526a183ca664b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2886679" author="mlocati@gmail.com" created="Thu, 20 Feb 2020 15:37:00 +0000"  >&lt;p&gt;I&apos;m the mailnainer of a widely used script to install extensions in PHP Docker images (&lt;a href=&quot;https://github.com/mlocati/docker-php-extension-installer&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;reference&lt;/a&gt;), and moving from LibreSSL to OpenSSL would cause some clashes with other system packages.&lt;br/&gt;
At the moment I locked the version to 1.6.0 which doesn&apos;t suffer from this issue (&lt;a href=&quot;https://github.com/mlocati/docker-php-extension-installer/pull/118/commits/122141976c39c0d985262a170a4207b2b5136793&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;reference&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;Any ETA for a new version of the mongodb PHP extension with a patch for this issue?&lt;/p&gt;</comment>
                            <comment id="2883349" author="kevin.albertson" created="Tue, 18 Feb 2020 21:55:33 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=mlocati%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;mlocati@gmail.com&quot;&gt;mlocati@gmail.com&lt;/a&gt;, thanks for the report! This is due to a change introduced in 1.16.0, and will be fixed in 1.16.2. Your suggested change seems to be the right fix. This is currently an issue with building against LibreSSL when libmongoc is configured to automatically detect the SSL library available (which in this case will be the libssl/libcrypto provided by LibreSSL). If building with OpenSSL is an option, that may be a viable workaround for the time being.&lt;/p&gt;

&lt;p&gt;Best,&lt;br/&gt;
Kevin&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="1183761">PHPC-1559</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1157331">CDRIVER-3544</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hwf55z:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>