Searched refs:tok (Results 1 - 7 of 7) sorted by relevance

/sssd/src/util/
H A Dauthtok.c28 enum sss_authtok_type sss_authtok_get_type(struct sss_auth_token *tok) argument
30 return tok->type;
33 size_t sss_authtok_get_size(struct sss_auth_token *tok) argument
35 if (!tok) {
38 switch (tok->type) {
44 return tok->length;
52 uint8_t *sss_authtok_get_data(struct sss_auth_token *tok) argument
54 if (!tok) {
57 return tok->data;
60 errno_t sss_authtok_get_password(struct sss_auth_token *tok, argument
85 sss_authtok_get_ccfile(struct sss_auth_token *tok, const char **ccfile, size_t *len) argument
110 sss_authtok_set_string(struct sss_auth_token *tok, enum sss_authtok_type type, const char *context_name, const char *str, size_t len) argument
143 sss_authtok_set_empty(struct sss_auth_token *tok) argument
166 sss_authtok_set_password(struct sss_auth_token *tok, const char *password, size_t len) argument
175 sss_authtok_set_ccfile(struct sss_auth_token *tok, const char *ccfile, size_t len) argument
187 sss_authtok_set(struct sss_auth_token *tok, enum sss_authtok_type type, const uint8_t *data, size_t len) argument
246 sss_authtok_wipe_password(struct sss_auth_token *tok) argument
307 sss_authtok_set_2fa_from_blob(struct sss_auth_token *tok, const uint8_t *data, size_t len) argument
348 sss_authtok_get_2fa(struct sss_auth_token *tok, const char **fa1, size_t *fa1_len, const char **fa2, size_t *fa2_len) argument
388 sss_authtok_set_2fa(struct sss_auth_token *tok, const char *fa1, size_t fa1_len, const char *fa2, size_t fa2_len) argument
428 sss_authtok_set_sc_pin(struct sss_auth_token *tok, const char *pin, size_t len) argument
444 sss_authtok_get_sc_pin(struct sss_auth_token *tok, const char **pin, size_t *len) argument
469 sss_authtok_set_sc_keypad(struct sss_auth_token *tok) argument
[all...]
H A Dauthtok.h34 * @param tok A pointer to an sss_auth_token
38 enum sss_authtok_type sss_authtok_get_type(struct sss_auth_token *tok);
43 * @param tok A pointer to an sss_auth_token
47 size_t sss_authtok_get_size(struct sss_auth_token *tok);
52 * @param tok A pointer to an sss_auth_token
56 uint8_t *sss_authtok_get_data(struct sss_auth_token *tok);
62 * @param tok A pointer to an sss_auth_token
71 errno_t sss_authtok_get_password(struct sss_auth_token *tok,
77 * @param tok A pointer to a sss_auth_token structure to change, also
86 errno_t sss_authtok_set_password(struct sss_auth_token *tok,
[all...]
/sssd/src/sss_client/
H A Dpam_message.c35 const char *tok, const size_t size,
41 if (tok == NULL) return 0;
55 memcpy(&buf[rp], tok, size);
33 add_authtok_item(enum pam_item_type type, enum sss_authtok_type authtok_type, const char *tok, const size_t size, uint8_t *buf) argument
/sssd/src/providers/krb5/
H A Dkrb5_child_handler.c57 struct sss_auth_token *tok)
65 auth_token_type = sss_authtok_get_type(tok);
73 ret = sss_authtok_get_password(tok, &data, &len);
77 ret = sss_authtok_get_ccfile(tok, &data, &len);
81 data = (char *) sss_authtok_get_data(tok);
82 auth_token_length = sss_authtok_get_size(tok);
56 pack_authtok(struct io_buffer *buf, size_t *rp, struct sss_auth_token *tok) argument
H A Dkrb5_child.c1836 static errno_t unpack_authtok(struct sss_auth_token *tok, argument
1850 sss_authtok_set_empty(tok);
1853 ret = sss_authtok_set_password(tok, (char *)(buf + *p), 0);
1856 ret = sss_authtok_set_ccfile(tok, (char *)(buf + *p), 0);
1859 ret = sss_authtok_set(tok, SSS_AUTHTOK_TYPE_2FA, (buf + *p),
/sssd/src/responder/pam/
H A Dpamsrv_cmd.c126 static int extract_authtok_v2(struct sss_auth_token *tok, argument
144 sss_authtok_set_empty(tok);
148 sss_authtok_set_empty(tok);
150 ret = sss_authtok_set_password(tok, (const char *)auth_token_data,
155 ret = sss_authtok_set(tok, SSS_AUTHTOK_TYPE_2FA,
159 ret = sss_authtok_set_sc_pin(tok, (const char *) auth_token_data,
163 sss_authtok_set_sc_keypad(tok);
349 static int extract_authtok_v1(struct sss_auth_token *tok, argument
363 sss_authtok_set_empty(tok);
366 ret = sss_authtok_set_password(tok, (cons
[all...]
/sssd/src/tests/cmocka/
H A Dtest_utils.c40 #define MACRO_EXPAND(tok) #tok
41 #define STR(tok) MACRO_EXPAND(tok)

Completed in 1627 milliseconds