mirror of
https://github.com/Neo-Desktop/WindowsXPKg
synced 2024-12-22 20:40:16 +02:00
Include "bink.h", update BINK.h generation script
This commit is contained in:
parent
5bf1da663a
commit
bd11fb5eed
@ -14,7 +14,7 @@ with open('bink.h', 'w') as out:
|
|||||||
#ifndef WINDOWSXPKG_BINK_H
|
#ifndef WINDOWSXPKG_BINK_H
|
||||||
#define WINDOWSXPKG_BINK_H
|
#define WINDOWSXPKG_BINK_H
|
||||||
|
|
||||||
#include "shared.h"
|
#include "header.h"
|
||||||
|
|
||||||
std::unordered_map<std::string, std::unordered_map<int, std::string>> Products;
|
std::unordered_map<std::string, std::unordered_map<int, std::string>> Products;
|
||||||
std::unordered_map<std::string, ECDLP_Params> BINKData;
|
std::unordered_map<std::string, ECDLP_Params> BINKData;
|
||||||
@ -39,8 +39,8 @@ void initBink() {
|
|||||||
'{"' + d['g']['x'] + '", "' + d['g']['y'] + '"}, ' +
|
'{"' + d['g']['x'] + '", "' + d['g']['y'] + '"}, ' +
|
||||||
'"' + d['n'] + '", "' + d['priv'] + '"};' + "\n")
|
'"' + d['n'] + '", "' + d['priv'] + '"};' + "\n")
|
||||||
|
|
||||||
out.write("""
|
out.write('''
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif //WINDOWSXPKG_BINK_H
|
#endif //WINDOWSXPKG_BINK_H
|
||||||
""")
|
''')
|
||||||
|
3
header.h
3
header.h
@ -6,7 +6,6 @@
|
|||||||
#define WINDOWSXPKG_HEADER_H
|
#define WINDOWSXPKG_HEADER_H
|
||||||
|
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <cstdio>
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
@ -20,6 +19,8 @@
|
|||||||
#include <openssl/sha.h>
|
#include <openssl/sha.h>
|
||||||
#include <openssl/rand.h>
|
#include <openssl/rand.h>
|
||||||
|
|
||||||
|
#include "bink.h"
|
||||||
|
|
||||||
#define PK_LENGTH 25
|
#define PK_LENGTH 25
|
||||||
#define NULL_TERMINATOR 1
|
#define NULL_TERMINATOR 1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user