[FFmpeg-devel] [PATCH] fix typo(1),style(1),nit(4) issue

Hendrik Leppkes h.leppkes at gmail.com
Wed Apr 3 12:00:08 EEST 2024


On Wed, Apr 3, 2024 at 10:50 AM 정지우 | Eugene <eugene at bitsensing.com> wrote:
>
> - typo(1) : Line 242 : RFIC7616 ->RFC7616
> - style(1) : make_digest_auth() , make_digest_auth_sha() : A1hash-> a1_hash and A2hash -> a2_hash
> - nit(3) : httpauth.c: Line 245,265,389:
> - nit(1) : httpauth.h: Line 85
>
> Signed-off-by: Eugene-bitsensing <eugene at bitsensing.com>
>
> @@ -386,7 +386,7 @@ char *ff_http_auth_create_response(HTTPAuthState *state, const char *auth,
>          if ((password = strchr(username, ':'))) {
>              *password++ = 0;
>              /* add digest algorithm SHA-256 */
> -            if (!strcmp(state->digest_params.algorithm, "SHA-256")) {
> +            if (!strcmp(state->digest_params.algorithm, "SHA256")) {

This is not a "nit", "SHA-256" with a dash is how RFC 7616 specifies
the algorithm token to be spelled.

>                  authstr = make_digest_auth_sha(state, username, password, path, method,"SHA256");
>              } else {
>                  authstr = make_digest_auth(state, username, password, path, method);

- Hendrik


More information about the ffmpeg-devel mailing list