00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #ifndef FPM_BLOWFISH_CODEC_PROTOTYPE_H
00031 #define FPM_BLOWFISH_CODEC_PROTOTYPE_H
00032
00033 #define FPM_DISPLAY_VERSION "0.53"
00034 #define FPM_FULL_VERSION "00.53.00"
00035 #define FPM_MIN_VERSION "00.50.00"
00036 #define FPM_ENCRYPT_VERSION "00.23.00"
00037
00038 #include <stdio.h>
00039 #include <pwd.h>
00040 #include <sys/types.h>
00041 #include <unistd.h>
00042 #include <errno.h>
00043 #include <libxml/parser.h>
00044 #include <libxml/tree.h>
00045
00046 #include <list>
00047 #include <string>
00048 #include <vector>
00049
00050 #include <Passguard.h>
00051
00052 #include <FPMEncryptionManager.h>
00053
00054 using namespace std;
00055
00056
00057
00058
00059
00060 class FPMBlowfishCodecPrototype : public PasswordCodecPrototype
00061 {
00062 public:
00063 FPMBlowfishCodecPrototype ();
00064 FPMBlowfishCodecPrototype (const FPMBlowfishCodecPrototype& password_codec_prototype);
00065 virtual ~FPMBlowfishCodecPrototype ();
00066
00067 virtual PasswordCodecPrototype* clone (void) const;
00068
00069 virtual bool loadFile (string filename, string password);
00070 virtual bool saveFile (string password);
00071
00072 virtual bool pushPasswordInfos (PasswordInfos* password_infos);
00073
00074 virtual bool isEditable (void);
00075
00076 virtual bool hasFixedField (void) const;
00077 virtual int getNbField (void) const;
00078 virtual PasswordInfos getFieldsName (void) const;
00079 virtual bool setFieldsName (PasswordInfos fields_name_infos);
00080
00081 private:
00082 string _filename;
00083 PasswordInfos _fields_name;
00084 list<PasswordInfos*> _password_infos_list;
00085 };
00086
00087 #endif