pwquality.h   pwquality.h 
skipping to change at line 13 skipping to change at line 13
* *
* Copyright (c) Red Hat, Inc, 2011 * Copyright (c) Red Hat, Inc, 2011
* Copyright (c) Tomas Mraz <tm@t8m.info>, 2011 * Copyright (c) Tomas Mraz <tm@t8m.info>, 2011
* *
* See the end of the file for the License Information * See the end of the file for the License Information
*/ */
#ifndef PWQUALITY_H #ifndef PWQUALITY_H
#define PWQUALITY_H #define PWQUALITY_H
#ifdef __cplusplus
extern "C" {
#endif
#define PWQ_SETTING_DIFF_OK 1 #define PWQ_SETTING_DIFF_OK 1
#define PWQ_SETTING_MIN_LENGTH 3 #define PWQ_SETTING_MIN_LENGTH 3
#define PWQ_SETTING_DIG_CREDIT 4 #define PWQ_SETTING_DIG_CREDIT 4
#define PWQ_SETTING_UP_CREDIT 5 #define PWQ_SETTING_UP_CREDIT 5
#define PWQ_SETTING_LOW_CREDIT 6 #define PWQ_SETTING_LOW_CREDIT 6
#define PWQ_SETTING_OTH_CREDIT 7 #define PWQ_SETTING_OTH_CREDIT 7
#define PWQ_SETTING_MIN_CLASS 8 #define PWQ_SETTING_MIN_CLASS 8
#define PWQ_SETTING_MAX_REPEAT 9 #define PWQ_SETTING_MAX_REPEAT 9
#define PWQ_SETTING_DICT_PATH 10 #define PWQ_SETTING_DICT_PATH 10
#define PWQ_SETTING_MAX_CLASS_REPEAT 11 #define PWQ_SETTING_MAX_CLASS_REPEAT 11
skipping to change at line 135 skipping to change at line 139
const char *oldpassword, const char *user, void **auxerror); const char *oldpassword, const char *user, void **auxerror);
/* Translate the error code and auxiliary message into a localized /* Translate the error code and auxiliary message into a localized
* text message. * text message.
* If buf is NULL it uses an internal static buffer which * If buf is NULL it uses an internal static buffer which
* makes the function non-reentrant in that case. * makes the function non-reentrant in that case.
* The returned pointer is not guaranteed to point to the buf. */ * The returned pointer is not guaranteed to point to the buf. */
const char * const char *
pwquality_strerror(char *buf, size_t len, int errcode, void *auxerror); pwquality_strerror(char *buf, size_t len, int errcode, void *auxerror);
#ifdef __cplusplus
}
#endif
#endif /* PWQUALITY_H */ #endif /* PWQUALITY_H */
/* /*
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
* 1. Redistributions of source code must retain the above copyright * 1. Redistributions of source code must retain the above copyright
* notice, and the entire permission notice in its entirety, * notice, and the entire permission notice in its entirety,
* including the disclaimer of warranties. * including the disclaimer of warranties.
* 2. Redistributions in binary form must reproduce the above copyright * 2. Redistributions in binary form must reproduce the above copyright
 End of changes. 2 change blocks. 
0 lines changed or deleted 8 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/