19 #ifndef AUTH_OPTIONS_H
20 #define AUTH_OPTIONS_H
26 #define SSH_AUTHOPT_PERMIT_MAX 4096
29 #define SSH_AUTHOPT_ENV_MAX 1024
37 int permit_port_forwarding_flag;
38 int permit_agent_forwarding_flag;
39 int permit_x11_forwarding_flag;
47 uint64_t valid_before;
51 char *cert_principals;
72 char *required_from_host_cert;
73 char *required_from_host_keys;
76 int no_require_user_presence;
81 struct sshauthopt *sshauthopt_new(
void);
82 struct sshauthopt *sshauthopt_new_with_keys_defaults(
void);
83 void sshauthopt_free(
struct sshauthopt *opts);
84 struct sshauthopt *sshauthopt_copy(
const struct sshauthopt *orig);
85 int sshauthopt_serialise(
const struct sshauthopt *opts,
struct sshbuf *m,
int);
86 int sshauthopt_deserialise(
struct sshbuf *m,
struct sshauthopt **opts);
92 struct sshauthopt *sshauthopt_parse(
const char *s,
const char **errstr);
98 struct sshauthopt *sshauthopt_from_cert(
struct sshkey *k);
103 struct sshauthopt *sshauthopt_merge(
const struct sshauthopt *primary,
104 const struct sshauthopt *additional,
const char **errstrp);