Parse authz correctly.
This commit is contained in:
parent
8d1b199d26
commit
aeda172afd
@ -3676,6 +3676,8 @@ int tls1_send_server_supplemental_data(SSL *s)
|
|||||||
|
|
||||||
type = *(authz++);
|
type = *(authz++);
|
||||||
n2s(authz, len);
|
n2s(authz, len);
|
||||||
|
/* n2s increments authz by 2*/
|
||||||
|
i += 2;
|
||||||
|
|
||||||
if (memchr(s->s3->tlsext_authz_client_types,
|
if (memchr(s->s3->tlsext_authz_client_types,
|
||||||
type,
|
type,
|
||||||
@ -3719,6 +3721,8 @@ int tls1_send_server_supplemental_data(SSL *s)
|
|||||||
|
|
||||||
type = *(authz++);
|
type = *(authz++);
|
||||||
n2s(authz, len);
|
n2s(authz, len);
|
||||||
|
/* n2s increments authz by 2 */
|
||||||
|
i += 2;
|
||||||
|
|
||||||
if (memchr(s->s3->tlsext_authz_client_types,
|
if (memchr(s->s3->tlsext_authz_client_types,
|
||||||
type,
|
type,
|
||||||
|
@ -1234,6 +1234,8 @@ unsigned char *ssl_add_serverhello_tlsext(SSL *s, unsigned char *p, unsigned cha
|
|||||||
authz_count++;
|
authz_count++;
|
||||||
|
|
||||||
n2s(authz, length);
|
n2s(authz, length);
|
||||||
|
/* n2s increments authz by 2 */
|
||||||
|
i += 2;
|
||||||
authz += length;
|
authz += length;
|
||||||
i += length;
|
i += length;
|
||||||
}
|
}
|
||||||
@ -1267,6 +1269,8 @@ unsigned char *ssl_add_serverhello_tlsext(SSL *s, unsigned char *p, unsigned cha
|
|||||||
s->s3->tlsext_authz_client_types_len) != NULL)
|
s->s3->tlsext_authz_client_types_len) != NULL)
|
||||||
*(ret++) = type;
|
*(ret++) = type;
|
||||||
n2s(authz, length);
|
n2s(authz, length);
|
||||||
|
/* n2s increments authz by 2 */
|
||||||
|
i += 2;
|
||||||
authz += length;
|
authz += length;
|
||||||
i += length;
|
i += length;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user