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
/* | |
* Adds name constraints to a certificate. Useful if you need to | |
* import your organization's private CA into your web browser, but | |
* you only want to trust it for your organization's domains and not | |
* the Internet at large. | |
* | |
* The certificate is re-signed by an ephemeral issuer with a random | |
* key so you don't need access to the private key. A random serial number | |
* is placed in the Issuer DN so browsers don't attempt to verify the | |
* signature when you import the certificate. |
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
// This is C++11-only because it assumes that std::strings can | |
// be accessed and mutated as a contiguous sequence of chars. | |
std::string sys::readlink (const char* pathname) | |
{ | |
std::string buffer(64, '\0'); | |
ssize_t len; | |
while ((len = ::readlink(pathname, &buffer[0], buffer.size())) == static_cast<ssize_t>(buffer.size())) { | |
// buffer may have been truncated - grow and try again | |
buffer.resize(buffer.size() * 2); |
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
pkgname=git-crypt | |
pkgver=0.4.2 | |
pkgrel=1 | |
pkgdesc="Transparent file encryption in Git" | |
arch=('i686' 'x86_64') | |
url="https://www.agwa.name/projects/${pkgname}/" | |
license=('GPL3') | |
depends=('git' 'openssl') | |
provides=("$pkgname") | |
conflicts=("${pkgname}-git") |
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
diff -ru _1/apt-0.9.7.9+deb7u4/apt-pkg/acquire-item.cc _2/apt-0.9.7.9+deb7u5/apt-pkg/acquire-item.cc | |
--- _1/apt-0.9.7.9+deb7u4/apt-pkg/acquire-item.cc 2014-09-17 07:30:35.000000000 -0700 | |
+++ _2/apt-0.9.7.9+deb7u5/apt-pkg/acquire-item.cc 2014-09-22 23:56:57.000000000 -0700 | |
@@ -970,6 +970,12 @@ | |
else | |
Local = true; | |
+ // do not reverify cdrom sources as apt-cdrom may rewrite the Packages | |
+ // file when its doing the indexcopy | |
+ if (RealURI.substr(0,6) == "cdrom:" && |
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
// Migrate an old-style git-crypt revamp branch key to a new-style git-crypt revamp branch key. | |
// Reads old key from stdin and writes new key to stdout. | |
// Compile with: c++ -o migrate-revamp-key migrate-revamp-key.cpp | |
#include <iostream> | |
#include <cstdlib> | |
#include <cstring> | |
static void grab (char* p, std::streamsize len) | |
{ |
NewerOlder