mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-04-01 11:53:03 +03:00
API: Don't expose urldb_{g|s}et_auth_details to frontends.
This commit is contained in:
parent
66a97b863c
commit
5e97a3cb26
@ -74,6 +74,27 @@ nserror urldb_set_url_title(struct nsurl *url, const char *title);
|
||||
nserror urldb_set_url_content_type(struct nsurl *url, content_type type);
|
||||
|
||||
|
||||
/**
|
||||
* Set authentication data for an URL
|
||||
*
|
||||
* \param url The URL to consider
|
||||
* \param realm The authentication realm
|
||||
* \param auth The authentication details (in form username:password)
|
||||
*/
|
||||
void urldb_set_auth_details(struct nsurl *url, const char *realm, const char *auth);
|
||||
|
||||
|
||||
/**
|
||||
* Look up authentication details in database
|
||||
*
|
||||
* \param url Absolute URL to search for
|
||||
* \param realm When non-NULL, it is realm which can be used to determine
|
||||
* the protection space when that's not been done before for given URL.
|
||||
* \return Pointer to authentication details, or NULL if not found
|
||||
*/
|
||||
const char *urldb_get_auth_details(struct nsurl *url, const char *realm);
|
||||
|
||||
|
||||
/**
|
||||
* Update an URL's visit data
|
||||
*
|
||||
|
@ -57,27 +57,6 @@ nserror urldb_load(const char *filename);
|
||||
nserror urldb_save(const char *filename);
|
||||
|
||||
|
||||
/**
|
||||
* Set authentication data for an URL
|
||||
*
|
||||
* \param url The URL to consider
|
||||
* \param realm The authentication realm
|
||||
* \param auth The authentication details (in form username:password)
|
||||
*/
|
||||
void urldb_set_auth_details(struct nsurl *url, const char *realm, const char *auth);
|
||||
|
||||
|
||||
/**
|
||||
* Look up authentication details in database
|
||||
*
|
||||
* \param url Absolute URL to search for
|
||||
* \param realm When non-NULL, it is realm which can be used to determine
|
||||
* the protection space when that's not been done before for given URL.
|
||||
* \return Pointer to authentication details, or NULL if not found
|
||||
*/
|
||||
const char *urldb_get_auth_details(struct nsurl *url, const char *realm);
|
||||
|
||||
|
||||
/**
|
||||
* Iterate over entries in the database which match the given prefix
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user