#ifndef __LINUX_COMPILER_H #define __LINUX_COMPILER_H /* Somewhere in the middle of the GCC 2.96 development cycle, we implemented a mechanism by which the user can annotate likely branch directions and expect the blocks to be reordered appropriately. Define __builtin_expect to nothing for earlier compilers. */ #if __GNUC__ == 2 && __GNUC_MINOR__ < 96 #define __builtin_expect(x, expected_value) (x) #endif #define likely(x) __builtin_expect((x),1) #define unlikely(x) __builtin_expect((x),0) #if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) #define __attribute_used__ __attribute__((__used__)) #else #define __attribute_used__ __attribute__((__unused__)) #endif #if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) #define __must_check __attribute__((warn_unused_result)) #else #define __must_check #endif #endif /* __LINUX_COMPILER_H */ td>
clone of mitm proxyJames
aboutsummaryrefslogtreecommitdiffstats
path: root/test/pathod/scripts/generate.sh
blob: eec3077daf8617ad5651775fd8d7a7ce94f998c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

if [ ! -f ./private.key ]
then
    openssl genrsa -out private.key 3072
fi
openssl req \
    -batch \
    -new -x509 \
    -key private.key \
    -sha256 \
    -out cert.pem \
    -days 9999 \
    -config ./openssl.cnf
openssl x509 -in cert.pem -text -noout
cat ./private.key ./cert.pem > testcert.pem
rm ./private.key ./cert.pem