Git development
 help / color / mirror / Atom feed
* Git 2.54.0-rc0 Breaks on OpenSSL 3.0
@ 2026-04-05 19:05 rsbecker
  2026-04-06  7:07 ` René Scharfe
  0 siblings, 1 reply; 3+ messages in thread
From: rsbecker @ 2026-04-05 19:05 UTC (permalink / raw)
  To: git

Sadly, OpenSSL 3.0 is still out in the wild for those who have extended
support contracts with OpenSSL. The following errors happen using OpenSSL
3.0 when built with c99:

"/home/jenkinsbuild/.jenkins/workspace/Git_Pipeline/imap-send.c", line 274:
error(252):
          argument of type "const X509_NAME_ENTRY *" is incompatible with
          parameter of type "X509_NAME_ENTRY *" (aka "struct
X509_name_entry_st
          *")

                                     ASN1_STRING_get0_data(cname),
hostname);
                                     ^
"/home/jenkinsbuild/.jenkins/workspace/Git_Pipeline/imap-send.c", line 279:
error(114):
          identifier "ASN1_STRING_get0_data" is undefined

Sincerely,
Randall

--
Brief whoami: NonStop&UNIX developer since approximately
UNIX(421664400)
NonStop(211288444200000000)
-- In real life, I talk too much.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Git 2.54.0-rc0 Breaks on OpenSSL 3.0
  2026-04-05 19:05 Git 2.54.0-rc0 Breaks on OpenSSL 3.0 rsbecker
@ 2026-04-06  7:07 ` René Scharfe
  2026-04-06 14:35   ` rsbecker
  0 siblings, 1 reply; 3+ messages in thread
From: René Scharfe @ 2026-04-06  7:07 UTC (permalink / raw)
  To: rsbecker; +Cc: Beat Bolli, git

On 4/5/26 9:05 PM, rsbecker@nexbridge.com wrote:
> Sadly, OpenSSL 3.0 is still out in the wild for those who have extended
> support contracts with OpenSSL. 

https://openssl-library.org/policies/releasestrat/index.html says
"Version 3.0 will be supported until 2026-09-07 (LTS)".

> The following errors happen using OpenSSL
> 3.0 when built with c99:
> 
> "/home/jenkinsbuild/.jenkins/workspace/Git_Pipeline/imap-send.c", line 274:
> error(252):
>           argument of type "const X509_NAME_ENTRY *" is incompatible with
>           parameter of type "X509_NAME_ENTRY *" (aka "struct
> X509_name_entry_st
>           *")

This line contains:

	    (cname = X509_NAME_ENTRY_get_data(cname_entry)) == NULL)

https://docs.openssl.org/3.0/man3/X509_NAME_ENTRY_get_object/ gives its
prototype as:

ASN1_STRING *X509_NAME_ENTRY_get_data(const X509_NAME_ENTRY *ne);

This has been matching the code since OpenSSL commit 9f5466b9b8
(Constify some X509_NAME, ASN1 printing code, 2016-07-07).  git describe
calls this commit OpenSSL_1_1_0-pre6-232-g9f5466b9b8.

>                                      ASN1_STRING_get0_data(cname),
> hostname);
>                                      ^
> "/home/jenkinsbuild/.jenkins/workspace/Git_Pipeline/imap-send.c", line 279:
> error(114):
>           identifier "ASN1_STRING_get0_data" is undefined

https://docs.openssl.org/3.0/man3/ASN1_STRING_length/ gives its
prototype as:

const unsigned char *ASN1_STRING_get0_data(const ASN1_STRING *x);

It was added by OpenSSL commit 17ebf85abd (Add ASN1_STRING_get0_data(),
deprecate ASN1_STRING_data()., 2016-08-16).  git describe calls this
commit OpenSSL_1_1_0-pre6-119-g17ebf85abd.

Are you sure you use OpenSSL 3.0?  The errors suggest it's a rather
older version (before 1.1.1).

René


^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Git 2.54.0-rc0 Breaks on OpenSSL 3.0
  2026-04-06  7:07 ` René Scharfe
@ 2026-04-06 14:35   ` rsbecker
  0 siblings, 0 replies; 3+ messages in thread
From: rsbecker @ 2026-04-06 14:35 UTC (permalink / raw)
  To: 'René Scharfe'; +Cc: 'Beat Bolli', git

On April 6, 2026 3:07 AM, René Scharfe wrote:
>On 4/5/26 9:05 PM, rsbecker@nexbridge.com wrote:
>> Sadly, OpenSSL 3.0 is still out in the wild for those who have extended
>> support contracts with OpenSSL.
>
>https://openssl-library.org/policies/releasestrat/index.html says
>"Version 3.0 will be supported until 2026-09-07 (LTS)".
>
>> The following errors happen using OpenSSL
>> 3.0 when built with c99:
>>
>> "/home/jenkinsbuild/.jenkins/workspace/Git_Pipeline/imap-send.c", line 274:
>> error(252):
>>           argument of type "const X509_NAME_ENTRY *" is incompatible with
>>           parameter of type "X509_NAME_ENTRY *" (aka "struct
>> X509_name_entry_st
>>           *")
>
>This line contains:
>
>	    (cname = X509_NAME_ENTRY_get_data(cname_entry)) == NULL)
>
>https://docs.openssl.org/3.0/man3/X509_NAME_ENTRY_get_object/ gives its
>prototype as:
>
>ASN1_STRING *X509_NAME_ENTRY_get_data(const X509_NAME_ENTRY *ne);
>
>This has been matching the code since OpenSSL commit 9f5466b9b8
>(Constify some X509_NAME, ASN1 printing code, 2016-07-07).  git describe
>calls this commit OpenSSL_1_1_0-pre6-232-g9f5466b9b8.
>
>>                                      ASN1_STRING_get0_data(cname),
>> hostname);
>>                                      ^
>> "/home/jenkinsbuild/.jenkins/workspace/Git_Pipeline/imap-send.c", line 279:
>> error(114):
>>           identifier "ASN1_STRING_get0_data" is undefined
>
>https://docs.openssl.org/3.0/man3/ASN1_STRING_length/ gives its
>prototype as:
>
>const unsigned char *ASN1_STRING_get0_data(const ASN1_STRING *x);
>
>It was added by OpenSSL commit 17ebf85abd (Add ASN1_STRING_get0_data(),
>deprecate ASN1_STRING_data()., 2016-08-16).  git describe calls this
>commit OpenSSL_1_1_0-pre6-119-g17ebf85abd.
>
>Are you sure you use OpenSSL 3.0?  The errors suggest it's a rather
>older version (before 1.1.1).

Thanks Rene. Operator (me) error here. This was on the 1.0.2w build. We are disabling that
build now so that it will not get reported again.

Regards and thanks,
Randall


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-04-06 14:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-05 19:05 Git 2.54.0-rc0 Breaks on OpenSSL 3.0 rsbecker
2026-04-06  7:07 ` René Scharfe
2026-04-06 14:35   ` rsbecker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox