37 lines
650 B
C
37 lines
650 B
C
|
|
#ifndef MAINWINDOW_H
|
|||
|
|
#define MAINWINDOW_H
|
|||
|
|
|
|||
|
|
#include <QMainWindow>
|
|||
|
|
#include <openssl/ssl.h>
|
|||
|
|
|
|||
|
|
|
|||
|
|
namespace Ui {
|
|||
|
|
class MainWindow;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
class QPushButton;
|
|||
|
|
|
|||
|
|
class MainWindow : public QMainWindow
|
|||
|
|
{
|
|||
|
|
Q_OBJECT
|
|||
|
|
|
|||
|
|
public:
|
|||
|
|
explicit MainWindow(QWidget *parent = 0);
|
|||
|
|
~MainWindow();
|
|||
|
|
|
|||
|
|
|
|||
|
|
private slots:
|
|||
|
|
void on_recheckBtn_clicked();
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
RSA *createRSA( const unsigned char *szKey, bool bPubKey );
|
|||
|
|
QString createActiveCode(const QString &strRegCode,const QString &strAppId);
|
|||
|
|
void test(const QString &str,const unsigned char *data);
|
|||
|
|
void test1(const QString &str);
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
Ui::MainWindow *ui;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
#endif // MAINWINDOW_H
|