Changeset 43
- Timestamp:
- 05/05/08 11:35:28 (7 months ago)
- Files:
-
- 1 modified
-
trunk/src/pam_p11.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/pam_p11.c
r41 r43 49 49 50 50 extern int match_user(X509 * x509, const char *login); 51 52 /*53 * comodity function that returns 1 on null, empty o spaced string54 */55 static int is_spaced_str(const char *str)56 {57 char *pt = (char *)str;58 if (!str)59 return 1;60 if (!strcmp(str, ""))61 return 1;62 for (; *pt; pt++)63 if (!isspace(*pt))64 return 0;65 return 1;66 }67 51 68 52 PAM_EXTERN int pam_sm_authenticate(pam_handle_t * pamh, int flags, int argc,
