#if defined Q_WS_WIN # ifdef MYWIDGET_STATIC # define MYWIDGET_EXPORT # else # ifdef MYWIDGET_BUILD # define MYWIDGET_EXPORT __declspec(dllexport) # else # define MYWIDGET_EXPORT __declspec(dllimport) # endif # endif #else # define MYWIDGET_EXPORT #endifclass MYWIDGET_EXPORT MyWidget : public QWidget...
UTILS_EXPORT int SHA1Hash(SHA1Context *, const unsigned char *, unsigned);
extern "C" UTILS_EXPORT int SHA1Hash(SHA1Context *, const unsigned char *, unsigned);
#ifndef UTILS_EXPORT# if defined Q_WS_WIN # ifdef UTILS_STATIC # define UTILS_EXPORT //Static link# else # ifdef UTILS_DLL # define UTILS_EXPORT __declspec(dllexport) //Dynamic link# else # define UTILS_EXPORT __declspec(dllimport) //Import from dll# endif # endif # else # define UTILS_EXPORT //Linux# endif#endif //UTILSEXPORT_H
#ifndef _SHA1_H_#define _SHA1_H_#include "utilsexport.h"/* * This structure will hold context information for the hashing * operation */typedef struct SHA1Context{ unsigned Message_Digest[5]; /* Message Digest (output) */ unsigned Length_Low; /* Message length in bits */ unsigned Length_High; /* Message length in bits */ unsigned char Message_Block[64]; /* 512-bit message blocks */ int Message_Block_Index; /* Index into message block array */ int Computed; /* Is the digest computed? */ int Corrupted; /* Is the message digest corruped? */} SHA1Context;#ifdef __cplusplus extern "C" {#endif/* * Function Prototypes */UTILS_EXPORT void SHA1Reset(SHA1Context *);UTILS_EXPORT void SHA1Input(SHA1Context *, const unsigned char *, unsigned);UTILS_EXPORT int SHA1Result(SHA1Context *);UTILS_EXPORT int SHA1Hash(SHA1Context *, const unsigned char *, unsigned);UTILS_EXPORT int SHA1Hex(const SHA1Context *context, char *hex);#ifdef __cplusplus }#endif#endif