diff options
author | Guy Harris <guy@alum.mit.edu> | 2019-02-06 17:15:09 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2019-02-06 17:15:09 -0800 |
commit | 145cc1e967e20a9bb132e0d20683ad442aa0d084 (patch) | |
tree | 880f303e0ff3a4fd06686681ab044c8d7cfda960 /pcap-dpdk.c | |
parent | a9ab840836f5dea800d9e121a8616fee084c1729 (diff) |
Add some new authentication error codes for specific errors.
This might make it a bit cleaner to handle new authentication types;
clients will still have to check for PCAP_ERR_AUTH with particular error
strings to detect "that authentication type isn't supported by the
server", but at least they can check first for
PCAP_ERR_AUTH_TYPE_NOTSUP.
Also add PCAP_ERR_AUTH_FAILED for authentication failures and
PCAP_ERR_TLS_REQUIRED for "the server requires TLS". PCAP_ERR_AUTH is
used for all other errors, including internal errors.
While we're at it, fix one case where the wrong error code was returned
for "set sampling" request errors.
Diffstat (limited to 'pcap-dpdk.c')
0 files changed, 0 insertions, 0 deletions