websSetPassword GoAhead WebServer API GoAhead EMF

Synopsis

Define the password to use for implementing the default security policy.

Prototype

 #include "webs.h" 

 void websSetPassword(char_t *password); 

Parameters

password Global password to use granting access.

Description

The websSetPassword procedure defines the current security password. The default security handler will require all non-local requests (those from a remote system) to supply the password. The user name is ignored. To use the password feature, the security handler must be installed by calling websHandlerDefine for websSecurityHandler. This in done automatically in the GoAhead EMF. If you are using the GoAhead WebServer, this should be done in your main program. See main.c for examples.

Return Value

None

Example

 
websSetPassword("2much!"); 

Stability Classification

Stable.

See Also

websGetPassword, websSecurityHandler