mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-29 19:14:21 +01:00
Improve comments style
This commit is contained in:
parent
99fb6e9461
commit
28485d0a01
@ -2467,7 +2467,7 @@ static int ssl_parse_certificate_request( mbedtls_ssl_context *ssl )
|
|||||||
n = cert_type_len;
|
n = cert_type_len;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* In the subsequent code there are two paths that make read from buf:
|
* In the subsequent code there are two paths that read from buf:
|
||||||
* * the length of the signature algorithms field (if minor version of
|
* * the length of the signature algorithms field (if minor version of
|
||||||
* SSL is 3),
|
* SSL is 3),
|
||||||
* * distinguished name length otherwise.
|
* * distinguished name length otherwise.
|
||||||
@ -2524,12 +2524,12 @@ static int ssl_parse_certificate_request( mbedtls_ssl_context *ssl )
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The farthes access in buf is in the loop few lines below:
|
* The furthest access in buf is in the loop few lines below:
|
||||||
* sig_alg[i + 1],
|
* sig_alg[i + 1],
|
||||||
* where:
|
* where:
|
||||||
* sig_alg = buf + ...hdr_len + 3 + n,
|
* sig_alg = buf + ...hdr_len + 3 + n,
|
||||||
* max(i) = sig_alg_len - 1.
|
* max(i) = sig_alg_len - 1.
|
||||||
* Therefore the farthest access is:
|
* Therefore the furthest access is:
|
||||||
* buf[...hdr_len + 3 + n + sig_alg_len - 1 + 1],
|
* buf[...hdr_len + 3 + n + sig_alg_len - 1 + 1],
|
||||||
* which reduces to:
|
* which reduces to:
|
||||||
* buf[...hdr_len + 3 + n + sig_alg_len],
|
* buf[...hdr_len + 3 + n + sig_alg_len],
|
||||||
|
Loading…
Reference in New Issue
Block a user