Skip to content

Commit

Permalink
rebased curl/nginx & issue from curl CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sftcd committed Jan 13, 2024
1 parent 118bbb0 commit 2fbe0e9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
17 changes: 11 additions & 6 deletions esnistuff/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,16 @@ Most recent first...

DON'T DEPLOY ECH YET!!! It's still work-in-progress code.

- 20231203: fixed issue with GREASE+HRR, rebased apaceh, haproxy, nginx, lighttpd
(in recent days), started moving ``esnistuff`` content to a new defo-project]
[ech-dev-utils](https://github.com/defo-project/ech-dev-utils) repo, as stuff
from here won't be part of our (soon upcoming!) ECH PR to upstream openssl.
(Also refactoring howtos and test configs/scripts over there quite a bit.)
- 20240113: Rebased curl

- 20240110: Rebased nginx again.

- 20231203: fixed issue with GREASE+HRR, rebased apache, haproxy, nginx,
lighttpd (in recent days), started moving ``esnistuff`` content to a new
defo-project] [ech-dev-utils](https://github.com/defo-project/ech-dev-utils)
repo, as stuff from here won't be part of our (soon upcoming!) ECH PR to
upstream openssl. (Also refactoring howtos and test configs/scripts over there
quite a bit.)

- 20231120: changes to constants related to early IANA codepoint allocation

Expand All @@ -35,7 +40,7 @@ from here won't be part of our (soon upcoming!) ECH PR to upstream openssl.
- 20231113: rebased again

- 20231030: rebased again and cleaned up some of the gratuituous differences
between this and the ``masster`` branch, including:
between this and the ``master`` branch, including:
- ``crypto/err/openssl.txt`` had some gratuituous differences that are
probably merge hangovers
- repetition of ``hpke`` in ``crypto/build.info``
Expand Down
12 changes: 10 additions & 2 deletions ssl/ech.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,13 +390,13 @@ static int local_decode_rdata_name(unsigned char **buf, size_t *remaining,
char **dnsname)
{
unsigned char *cp = NULL;
size_t rem = 0;
int rem = 0;
char *thename = NULL, *tp = NULL;
unsigned char clen = 0; /* chunk len */

if (buf == NULL || remaining == NULL || dnsname == NULL)
return 0;
rem = *remaining;
rem = (int)*remaining;
thename = OPENSSL_malloc(TLSEXT_MAXLEN_host_name);
if (thename == NULL)
return 0;
Expand All @@ -423,9 +423,17 @@ static int local_decode_rdata_name(unsigned char **buf, size_t *remaining,
*tp++ = '.';
cp += clen;
rem -= (clen + 1);
if (rem <= 0) {
OPENSSL_free(thename);
return 0;
}
clen = *cp++;
}
*buf = cp;
if (rem <= 0) {
OPENSSL_free(thename);
return 0;
}
*remaining = rem;
*dnsname = thename;
return 1;
Expand Down

0 comments on commit 2fbe0e9

Please sign in to comment.