Skip to content

Instantly share code, notes, and snippets.

rsa/pkcs1v15.go | 5 ++
tls/common.go | 25 +++++++++----
tls/conn.go | 6 +++
tls/handshake_messages.go | 87 ++++++++++++++++++++++++++++++++++++++++++++++
tls/handshake_server.go | 59 +++++++++++++++++++++++++++++++
5 files changed, 175 insertions(+), 7 deletions(-)
diff -r 17ded5ad443b src/pkg/crypto/rsa/pkcs1v15.go
--- a/src/pkg/crypto/rsa/pkcs1v15.go Wed May 05 12:12:04 2010 +1000
@mkrautz
mkrautz / Ice-3.4.1-db5.patch
Created June 30, 2010 20:51
Patch for Ice-3.4.1 to work with Berkely DB 5.X.
--- ./cpp/src/Freeze/MapI.cpp
+++ ./cpp/src/Freeze/MapI.cpp
@@ -1487,10 +1487,10 @@ Freeze::MapHelperI::size() const
try
{
-#if DB_VERSION_MAJOR != 4
-#error Freeze requires DB 4.x
+#if DB_VERSION_MAJOR < 4
+#error Freeze requires DB 4.x or greater
From 0790af3bf54f8b1fcd418fec4ff968ffa55f334c Mon Sep 17 00:00:00 2001
From: Mikkel Krautz <mikkel@krautz.dk>
Date: Mon, 20 Sep 2010 10:02:39 -0400
Subject: [PATCH 1/2] Xcode: Avoid trailing space in ARCHS list (#11244)
With CMAKE_OSX_ARCHITECTURE settings such as $(ARCHS_STANDARD_32BIT),
the space inserted by the for loop would confuse Xcode if quoted. In
this particular example, what would be output would be:
ARCHS = "$(ARCHS_STANDARD_32BIT) ";
From a8ded5338bf44173fe33e0249ab14aa3d8e7540c Mon Sep 17 00:00:00 2001
From: Mikkel Krautz <mikkel@krautz.dk>
Date: Sat, 18 Sep 2010 14:18:12 +0200
Subject: [PATCH 2/2] Xcode: Quote string values containing '$' (#11244)
Allow use of $(STANDARD_32BIT_ARCHS) as CMAKE_OSX_ARCHITECTURES.
The expanded value must remain a single string.
---
Source/cmXCodeObject.cxx | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
// gcc eventtap.c -o eventtap -framework ApplicationServices -framework CoreFoundation
#include <CoreFoundation/CoreFoundation.h>
#include <ApplicationServices/ApplicationServices.h>
static CGEventRef eventtap_callback(CGEventTapProxy proxy, CGEventType type, CGEventRef event, void *udata) {
fprintf(stderr, "callback!\n");
fflush(stderr);
return event;
}
@mkrautz
mkrautz / GlobalShortcut.m
Created January 10, 2011 21:42
Global shortcut tester for Mumble
/* Copyright (C) 2010-2011 Mikkel Krautz <mikkel@krautz.dk>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
- Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
diff -r f782663275a7 src/cmd/ld/macho.c
--- a/src/cmd/ld/macho.c Fri Apr 01 20:51:55 2011 -0700
+++ b/src/cmd/ld/macho.c Mon Apr 04 18:57:07 2011 +0200
@@ -306,7 +306,7 @@
/* text */
v = rnd(HEADR+segtext.len, INITRND);
- ms = newMachoSeg("__TEXT", 2);
+ ms = newMachoSeg("__TEXT", 3);
ms->vaddr = va;
@mkrautz
mkrautz / session.patch
Created September 14, 2011 23:53
Gorilla AppEngine cookies
--- ./sessions.go
+++ ./sessions.go
@@ -18,7 +18,6 @@ import (
"http"
"os"
"strconv"
- "strings"
"time"
"gorilla.googlecode.com/hg/gorilla/context"
)
commit f1d52ab9775cefedacf7195f809d05e18e0b1a45
Author: Mikkel Krautz <mikkel@krautz.dk>
Date: Sat Sep 15 16:46:50 2012 +0200
Mumble: move the manual plugin into the Mumble binary.
diff --git a/plugins/manual/manual.cpp b/plugins/manual/manual.cpp
index d5f8ca1..764cdef 100644
--- a/plugins/manual/manual.cpp
+++ b/plugins/manual/manual.cpp
@mkrautz
mkrautz / gist:4758248
Created February 11, 2013 22:34
Mumble Win32 installer
echo Build installer && call ..\..\..\prep.bat && SET MumbleDebugToolsDir=C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE&& SET MumbleSourceDir=%WORKSPACE:/=\%&& cd scripts && call mkini-win32.bat && cd ..\installer && msbuild /p:Configuration=Release MumbleInstall.sln && perl build_installer.pl