This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub const AEPHK_F_AEP_CTRL: c_int = 100; | |
pub const AEPHK_F_AEP_FINISH: c_int = 101; | |
pub const AEPHK_F_AEP_GET_CONNECTION: c_int = 102; | |
pub const AEPHK_F_AEP_INIT: c_int = 103; | |
pub const AEPHK_F_AEP_MOD_EXP: c_int = 104; | |
pub const AEPHK_F_AEP_MOD_EXP_CRT: c_int = 105; | |
pub const AEPHK_F_AEP_RAND: c_int = 106; | |
pub const AEPHK_F_AEP_RSA_MOD_EXP: c_int = 107; | |
pub const AEPHK_R_ALREADY_LOADED: c_int = 100; | |
pub const AEPHK_R_CLOSE_HANDLES_FAILED: c_int = 101; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Generated by https://gist.github.com/64/8ac13019f4faa491018aab6b5c265141 | |
extern crate libc; | |
use libc::c_int; | |
pub const AEPHK_F_AEP_CTRL: c_int = 100; | |
pub const AEPHK_F_AEP_FINISH: c_int = 101; | |
pub const AEPHK_F_AEP_GET_CONNECTION: c_int = 102; | |
pub const AEPHK_F_AEP_INIT: c_int = 103; | |
pub const AEPHK_F_AEP_MOD_EXP: c_int = 104; | |
pub const AEPHK_F_AEP_MOD_EXP_CRT: c_int = 105; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Quite slow in debug, make sure to run in release (< 2s on my computer) | |
// TODO: Convert stuff in "err.h" correctly | |
extern crate regex; | |
use std::io::Write; | |
use std::io::BufRead; | |
use std::collections::BTreeMap; | |
use regex::Regex; | |
const USAGE: &'static str = "\ | |
errgen: generates rust constants from OpenSSL include directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <arpa/inet.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <signal.h> | |
#include <netdb.h> | |
#include <errno.h> |