Lines Matching defs:ret
56 int ret;
78 ret = pam_start("sss_test", user, &conv, &pamh);
79 if (ret != PAM_SUCCESS) {
80 fprintf(stderr, "pam_start failed: %s\n", pam_strerror(pamh, ret));
86 ret = pam_authenticate(pamh, 0);
87 fprintf(stderr, "pam_authenticate: %s\n", pam_strerror(pamh, ret));
90 ret = pam_chauthtok(pamh, 0);
91 fprintf(stderr, "pam_chauthtok: %s\n", pam_strerror(pamh, ret));
94 ret = pam_acct_mgmt(pamh, 0);
95 fprintf(stderr, "pam_acct_mgmt: %s\n", pam_strerror(pamh, ret));
98 ret = pam_setcred(pamh, 0);
99 fprintf(stderr, "pam_setcred: %d[%s]\n", ret, pam_strerror(pamh, ret));
102 ret = pam_open_session(pamh, 0);
103 fprintf(stderr, "pam_open_session: %s\n", pam_strerror(pamh, ret));
106 ret = pam_close_session(pamh, 0);
107 fprintf(stderr, "pam_close_session: %s\n", pam_strerror(pamh, ret));
112 pam_end(pamh, ret);