Skip to content

Instantly share code, notes, and snippets.

chantra chantra

Block or report user

Report or block chantra

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View chacha.diff
diff --git a/dnscrypt/cert.h b/dnscrypt/cert.h
index 50c9f81..def2ca2 100644
--- a/dnscrypt/cert.h
+++ b/dnscrypt/cert.h
@@ -15,12 +15,12 @@ struct SignedCert {
uint8_t version_minor[2];
// Signed Content
+ uint8_t signed_content[64];
uint8_t server_publickey[crypto_box_PUBLICKEYBYTES];
View dnscrypt_cert.tgz.diff
Binary files dnscrypt.new/dnscrypt_cert.dir/2_chacha.cert and dnscrypt.old/dnscrypt_cert.dir/2_chacha.cert differ
diff -ruN dnscrypt.new/dnscrypt_cert.dir/dnscrypt_cert.conf dnscrypt.old/dnscrypt_cert.dir/dnscrypt_cert.conf
--- dnscrypt.new/dnscrypt_cert.dir/dnscrypt_cert.conf 2017-06-01 19:14:27.000000000 -0700
+++ dnscrypt.old/dnscrypt_cert.dir/dnscrypt_cert.conf 2017-03-06 09:56:29.000000000 -0800
@@ -22,6 +22,5 @@
dnscrypt-secret-key: 1.key
dnscrypt-secret-key: 2.key
dnscrypt-provider-cert: 1.cert
- dnscrypt-provider-cert: 2_chacha.cert
dnscrypt-provider-cert: 2.cert
View dnscrypt_cert.diff
Binary files dnscrypt.old/dnscrypt_cert.dir/2_chacha.cert and dnscrypt.new/dnscrypt_cert.dir/2_chacha.cert differ
diff -ruN dnscrypt.old/dnscrypt_cert.dir/dnscrypt_cert.conf dnscrypt.new/dnscrypt_cert.dir/dnscrypt_cert.conf
--- dnscrypt.old/dnscrypt_cert.dir/dnscrypt_cert.conf 2017-03-06 09:56:29.000000000 -0800
+++ dnscrypt.new/dnscrypt_cert.dir/dnscrypt_cert.conf 2017-06-01 19:14:27.000000000 -0700
@@ -22,5 +22,6 @@
dnscrypt-secret-key: 1.key
dnscrypt-secret-key: 2.key
dnscrypt-provider-cert: 1.cert
+ dnscrypt-provider-cert: 2_chacha.cert
dnscrypt-provider-cert: 2.cert
View multiplecerts.diff
diff --git a/dnscrypt-wrapper.sh b/dnscrypt-wrapper.sh
index 0ef7e6f..d7a8592 100755
--- a/dnscrypt-wrapper.sh
+++ b/dnscrypt-wrapper.sh
@@ -29,15 +29,13 @@ new_key() {
--crypt-secretkey-file="${STKEYS_DIR}/${ts}.key" \
--provider-cert-file="${STKEYS_DIR}/${ts}.cert" \
--cert-file-expire-days=1 && \
- mv -f "${STKEYS_DIR}/${ts}.cert" "${STKEYS_DIR}/dnscrypt.cert" && \
/opt/dnscrypt-wrapper/sbin/dnscrypt-wrapper --gen-cert-file \
View busyspin.diff
diff --git a/lib/exabgp/reactor/network/connection.py b/lib/exabgp/reactor/network/connection.py
index 15763d7..def737f 100644
--- a/lib/exabgp/reactor/network/connection.py
+++ b/lib/exabgp/reactor/network/connection.py
@@ -43,9 +43,11 @@ class Connection (object):
# peer and local are strings of the IP
try:
self.defensive = environment.settings().debug.defensive
+ self.max_loop_speed = environment.settings().reactor.speed
self.logger = Logger()
View sodium_init.c
#include <sodium.h>
#include <unistd.h>
int main(){
if(chroot("/tmp") != 0){
printf("Failed to chroot\n");
return 1;
}
View sodium_init_misused.c
#include <sodium.h>
#include <unistd.h>
#include <stdlib.h>
static void misuse(void){
printf("Misused handler!\n");
exit(2);
}
View sodium_init.c
#include <sodium.h>
#include <unistd.h>
#include <stdlib.h>
static void misuse(void){
printf("Misused handler!\n");
exit(2);
}
View Dockerfile
FROM ubuntu:latest
RUN apt-get update
RUN apt-get install -y dnsutils iputils-ping iproute2 tcpdump vim
RUN apt-get install -y python python3
RUN mkdir /etc/exabgp
COPY exabgp.env /etc/exabgp/exabgp.env
COPY exabgp.conf /etc/exabgp/exabgp.conf
RUN mkdir /var/run/exabgp
View exabgp.conf
template {
neighbor all {
router-id 172.18.0.3;
local-as 65001;
hold-time 20;
capability {
graceful-restart;
}
}
}
You can’t perform that action at this time.