Skip to content

Instantly share code, notes, and snippets.

View desttinghim's full-sized avatar

Louis Pearson desttinghim

View GitHub Profile
@desttinghim
desttinghim / main.zig
Created February 1, 2020 22:52
Zig Sqlite
const std = @import("std");
usingnamespace @cImport({
@cInclude("sqlite3.h");
});
const Error = error{
CantOpen,
Error,
Busy,
Done,

DESCRIPTION

This call retrieves the contents of the z= tag in the signature. This must be called after opendkim.get_signature.

ARGUMENTS

Type: undefined

RETURN VALUES

  • throws an error if
    • The function was called before opendkim.get_signature()
  • returns an array of the headers in the z= tag

DESCRIPTION

Denote end-of-message for a message. When verifying, process signatures in order; when signing, compute all signatures. opendkim.eom() is called after the entire body of the message has been passed to the API via zero or more calls to opendkim.body().

For more information: http://www.opendkim.org/libopendkim/dkim_eom.html

ARGUMENTS

Type: undefined

RETURN VALUES

DESCRIPTION

This call returns a string describing the error for a specified error code, which can be found using opendkim.get_error. This method does not rely on any state to function.

ARGUMENTS

Type: undefined

RETURN VALUES

  • returns a string describing the error code.

NOTES

@desttinghim
desttinghim / opendkim.sig_geterror().md
Created October 28, 2017 21:59
ISSUE-21: sig_geterror() documentation

DESCRIPTION

This call retrieves the error code from the signature, which can be passed to opendkim.get_errorstr to get a string describing the error. This function uses the signature handle found by opendkim.get_signature() to pull the selector from. Internally, this function calls opendkim.get_signature(), so there is no need to explicitly call it yourself.

ARGUMENTS

Type: undefined

RETURN VALUES

  • throws an error if there is no signature on the message.
  • returns an integer representing one of the possible error values.
@desttinghim
desttinghim / Test.hx
Created August 12, 2016 21:55
Test project to demonstrate hxcpp haxelib repo error
class Test {
public static main() {
Sys.println("Hello, World!");
}
}
@desttinghim
desttinghim / LoadSVG.hx
Created June 27, 2016 18:13
Loading SVGs in Haxeflixel
import format.SVG;
import openfl.Assets;
import openfl.display.BitmapData;
import openfl.display.Shape;
class LoadSVG {
var svg:SVG;