28#include <compy/priv/compiler_attrs.h>
50 const char *username,
char *password_out,
size_t password_max,
70 void *user_data) COMPY_PRIV_MUST_USE;
118 char out[restrict 33],
const char *username,
const char *realm,
119 const char *password,
const char *nonce,
const char *method,
bool(* Compy_CredentialLookup)(const char *username, char *password_out, size_t password_max, void *user_data)
Credential lookup callback.
Definition auth.h:49
void compy_digest_response(char out[restrict 33], const char *username, const char *realm, const char *password, const char *nonce, const char *method, const char *uri)
Computes the MD5 Digest response hash per RFC 2617 Section 3.2.2.
Definition auth.c:95
void Compy_Auth_free(Compy_Auth *self)
Frees an authentication context.
Definition auth.c:90
Compy_Auth * Compy_Auth_new(const char *realm, Compy_CredentialLookup lookup, void *user_data) COMPY_PRIV_MUST_USE
Creates a new Digest authentication context.
Definition auth.c:69
int compy_auth_check(Compy_Auth *self, Compy_Context *ctx, const Compy_Request *req) COMPY_PRIV_MUST_USE
Validates the request's Authorization header.
Definition auth.c:172
An RTSP request.
Definition request.h:21