This RPC is used to pass authorization data from the net client to the net server.
| request: | reply: |
| SANE_String resource | SANE_Word dummy |
| SANE_String username | |
| SANE_String password |
Since the password is not encrypted during network transmission, it is recommended to use the following extension:
If the server adds the string `$MD5$' to the resource-name followed by a random string not longer then 128 bytes, the client may answer with the MD5 digest of the concatenation of the password and the random string. To differentiate between the MD5 digest and a strange password the client prepends the MD5 digest with the string `$MD5$'.
In the reply, dummy is completely unused. Note that there is no direct failure indication. This is unnecessary since a net client will retry the RPC that resulted in the authorization request until that call succeeds (or until the request is cancelled). The RPC that resulted in the authorization request continues after the reply from the client and may fail with SANE_STATUS_ACCESS_DENIED.