{{ 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
- Pointer to string in which to return the username
- ulen
- Length available for username
- password
- Pointer to string in which to return the password
- plen
- Length available for 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