Renaming flag_t to flag32_t to avoid conflicts with other libs
- Added a new config boolean option require_auth
- require_auth, when set to 1, will make mod_juise expect HTTP Basic auth header in the request and returns 401 if auth header is missing
- If auth header is found, it will parse username and password from auth hash and send it to juise through stdin in the first two lines
- Added two options to Juise, rpc-on-box a flag that tells that we are
running locally and auth-socket that takes the path to socket to connect
for user authentication
- Added a wrapper function in juise.c that will rewrite the url to fix
hostname to localhost when rpc-on-box is used and calls the actual rpc
execute function
- Juise reads first two lines from stdin as username and password, set
them in structures and invokes js_session_open_localhost() a newly added
function in jsio.c that connects on provided auth socket
- Added return HTTP status codes at few failure cases
- Modified juise.c to read Accept header in standard MIME and execute
Junos RPC with corresponding Junos output format
- Juise.c is modified to read Content-Type header and if application/xml
is used as content-type, we treat the data coming in as part of POST
request as XML content and build the RPC accordingly
Merge branch 'develop' of https://github.com/Juniper/juise into develop