{{ Np-browser-api() }}
Summary
The function is called by plugins to get the authentication information from browser.
Syntax
#include <npapi.h> NPError NPN_GetAuthenticationInfo(NPP instance, const char *protocol, const char *host, int32_t port, const char *scheme, const char *realm, char **username, uint32_t *ulen, char **password, uint32_t *plen);
Parameters
This function has the following parameters:
- instance
- Pointer to the current plug-in instance.
- protocol
- Protocol name (URI scheme).
- host
- Host name.
- port
- Port number.
- scheme
- HTTP authentication scheme name (???)
- realm
- HTTP authentication realm
- username
- Address of string pointer in which the username will be stored (note: not zero-terminated)
- ulen
- Length of username
- password
- Address of string pointer in which the password will be stored (note: not zero-terminated)
- plen
- Length of password
Returns
- If successful, the function returns NPERR_NO_ERROR.
- If unsuccessful, the function returns an error code. For possible values, see Error Codes.
Description
...
See also