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.
Type: undefined
- throws an error if there is no signature on the message.
- returns an integer representing one of the possible error values.
- none
try {
var opendkim = new OpenDKIM();
opendkim.verify({id: undefined});
opendkim.chunk({
message: message,
length: message.length
});
opendkim.chunk_end();
var error = opendkim.sig_geterror();
if (error != 0) {
throw error;
}
} catch (err) {
console.log(err);
}