Skip to content

Instantly share code, notes, and snippets.

View st3fan's full-sized avatar

Stefan Arentz st3fan

View GitHub Profile
[==========] Running 26 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 26 tests from pkixder_tests
[ RUN ] pkixder_tests.FailWithError
[ OK ] pkixder_tests.FailWithError (0 ms)
[ RUN ] pkixder_tests.InputInit
[ OK ] pkixder_tests.InputInit (0 ms)
[ RUN ] pkixder_tests.InputInitWithNullPointer
[ OK ] pkixder_tests.InputInitWithNullPointer (0 ms)
[ RUN ] pkixder_tests.InputInitWithLargeData
template <size_t Len>
Result
OID(Input& input, const uint8_t (&expectedOid)[Len])
{
if (ExpectTagAndLength(input, OIDTag, Len) != Success) {
return Failure;
}
return input.Expect(expectedOid, Len);
}
diff --git a/security/certverifier/moz.build b/security/certverifier/moz.build
--- a/security/certverifier/moz.build
+++ b/security/certverifier/moz.build
@@ -1,15 +1,16 @@
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
diff --git a/security/certverifier/moz.build b/security/certverifier/moz.build
--- a/security/certverifier/moz.build
+++ b/security/certverifier/moz.build
@@ -1,15 +1,16 @@
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
;; display only tails of lines longer than 80 columns, tabs and
;; trailing whitespaces
(setq whitespace-line-column 80
whitespace-style '(face tabs trailing lines-tail))
;; activate minor whitespace mode
(add-hook 'c-mode-hook 'whitespace-mode)
(add-hook 'c++-mode-hook 'whitespace-mode)
(defvar my-packages
'(cyberpunk-theme
clojure-mode
clojure-test-mode
cider
gist
go-mode
smartparens
expand-region
rainbow-delimiters

Keybase proof

I hereby claim:

  • I am st3fan on github.
  • I am st3fan (https://keybase.io/st3fan) on keybase.
  • I have a public key whose fingerprint is A643 6D5D B638 1C80 1F48 033D 7052 1C55 8313 AE2A

To claim this, I am signing this object:

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCtzeMVTzF8gsoO4M/5lnWerui7TZxUiaPurCpesSQXpRkANa2+G+1MjLeVSEf0hurUXGX+9izkvRoimPCRQVSE0ky+SZWwph+aHKkp2PxQKV9FdNZqsIHJpu4DT6TuopPIwmxWlrmjVSRCaMWYFf+w0A/UdKwXeQ2iM4pNfXB5/xcuICPj/zRVm9HUEWJ/3MoElRjjp1mHwB21I+ej3l1FO35Exg42VOSI4kIMjkQDrn/WxnMalESZejx08x7onTPUqVimdB5yEylRdy6sMHj1CZ11ispu9AUS9Ay4bKl+uVBtHgNO25XFC9jJIEyWzR1ePRVxdoTjxtxI1YW6bWPwo6xWsrGnQoYydiGedyZMGEI5rGWYm5nuciSXsY6qEPMpo6il40KoPenF1MK+067ErgYazCxe00yagAWVfZ4XG/P0AzimL1s99l68K6xYD6uIf9ehuZd8r63A+/F3PLjKXlImdUGqzrwQy6zOA/nvb0oRMuDsT9Sgl7LzEhtmEdRMQD7FoOeYLibaZyTvqef2OEP0N/hzvX9SW5KZZ+7T7WSkq2u8A6GXMFAbTpsSsLeGZ6AZxyPekTm4POE2WtdAQmBBdMbV/6LjFz4RBRScytDp8tCemb2ghIik0HLLTd759+tgmccCrHsEHYKllXffz1JLZrgK/qiYjvmpanIAow== sarentz@Galileo.local

Keybase proof

I hereby claim:

  • I am st3fan on github.
  • I am st3fan (https://keybase.io/st3fan) on keybase.
  • I have a public key whose fingerprint is A643 6D5D B638 1C80 1F48 033D 7052 1C55 8313 AE2A

To claim this, I am signing this object:

func consumer(connection *amqp.Connection, channel *amqp.Channel, queue amqp.Queue) {
log.Print("This is the consumer")
deliveries, err := channel.Consume(queue.Name,
"", // queue
true, // consumer
false, // autoAck
false, // exclusive
false, // noLocal
nil, // NoWait