19 #ifndef AUTH_OPTIONS_H
20 #define AUTH_OPTIONS_H
26 #define SSH_AUTHOPT_PERMIT_MAX 4096
34 int permit_port_forwarding_flag;
35 int permit_agent_forwarding_flag;
36 int permit_x11_forwarding_flag;
44 uint64_t valid_before;
48 char *cert_principals;
69 char *required_from_host_cert;
70 char *required_from_host_keys;
73 int no_require_user_presence;
78 struct sshauthopt *sshauthopt_new(
void);
79 struct sshauthopt *sshauthopt_new_with_keys_defaults(
void);
80 void sshauthopt_free(
struct sshauthopt *opts);
81 struct sshauthopt *sshauthopt_copy(
const struct sshauthopt *orig);
82 int sshauthopt_serialise(
const struct sshauthopt *opts,
struct sshbuf *m,
int);
83 int sshauthopt_deserialise(
struct sshbuf *m,
struct sshauthopt **opts);
89 struct sshauthopt *sshauthopt_parse(
const char *s,
const char **errstr);
95 struct sshauthopt *sshauthopt_from_cert(
struct sshkey *k);
100 struct sshauthopt *sshauthopt_merge(
const struct sshauthopt *primary,
101 const struct sshauthopt *additional,
const char **errstrp);