27#if HAVE_LANGINFO_CODESET
34#if HAVE_LANGINFO_CODESET
37 char *from = nl_langinfo (CODESET);
40 fprintf (stderr,
"warning: Could not convert string to UTF-8...\n");
78 readutf8line (
"Enter anonymous token (e.g., email address): ");
88 readutf8line (
"Enter base64 encoded tls-unique channel binding: ");
99 (
"Enter base64 encoded tls-exporter channel binding: ");
129 if (pw && pw->pw_name)
131 printf (
"Using system username `%s' as "
132 "authentication identity.\n", pw->pw_name);
153 readutf8line (
"Enter GSSAPI service name (e.g. \"imap\"): ");
178 (
"Enter quality of protection (optional, e.g. 'qop-int'): ");
189 printf (
"Authzid: %s\nDisplay Name: %s\n",
193 if (str && (strcmp (str,
"y") == 0 || strcmp (str,
"Y") == 0))
215 char *str =
readutf8line (
"Enter SAML authentication identifier "
216 "(e.g. \"http://example.org/\"): ");
227 printf (
"Proceed to this URL to authenticate using SAML 2.0:\n%s\n",
239 printf (
"Proceed to this URL to authenticate using OpenID 2.0:\n%s\n",
248 "warning: mechanism requested unsupported property `%u'\n",
static char * locale_to_utf8(char *str)
static char * readutf8line(const char *prompt)
char * readutf8pass(const char *prompt)
int callback(Gsasl *ctx _GL_UNUSED, Gsasl_session *sctx, Gsasl_property prop)
char * getpass(const char *prompt)
_GL_EXTERN_C void free(void *)
struct gengetopt_args_info args_info
int gsasl_property_set(Gsasl_session *sctx, Gsasl_property prop, const char *data)
const char * gsasl_property_get(Gsasl_session *sctx, Gsasl_property prop)
@ GSASL_AUTHENTICATION_ERROR
const char * gsasl_property_fast(Gsasl_session *sctx, Gsasl_property prop)
@ GSASL_SAML20_AUTHENTICATE_IN_BROWSER
@ GSASL_OPENID20_AUTHENTICATE_IN_BROWSER
@ GSASL_GSSAPI_DISPLAY_NAME
@ GSASL_SAML20_IDP_IDENTIFIER
@ GSASL_SCRAM_SALTED_PASSWORD
@ GSASL_SAML20_REDIRECT_URL
@ GSASL_OPENID20_REDIRECT_URL
char * readline(const char *prompt)
char * str_iconv(const char *src, const char *from_codeset, const char *to_codeset)
char * salt_arg
Indicate PBKDF2 salt as base64-encoded string (SCRAM only)..
char * anonymous_token_arg
Token for anonymous authentication, usually mail address (ANONYMOUS only)..
char * service_arg
Set the requested service name (should be a registered GSSAPI host based service name)....
char * password_arg
Password for authentication (insecure for non-testing purposes)..
char * authorization_id_arg
Identity to request service for..
char * realm_arg
Realm. Defaults to hostname..
char * passcode_arg
Passcode for authentication (SECURID only)..
char * hostname_arg
Set the name of the server with the requested service..
int no_cb_flag
Don't use channel bindings from TLS. (default=off).
char * quality_of_protection_arg
How application payload will be protected. 'qop-auth' means no protection, 'qop-int' means integrity ...
char * authentication_id_arg
Identity of credential owner..
char * iteration_count_orig
Indicate PBKDF2 hash iteration count (SCRAM only). original value given at command line.
char * xstrdup(char const *string)