Rfc6810 bis

pull request for reviewing code
* remove braces around dereference operation
* the cast of the realloc results is not required
* use sizeof(**result) instead of sizeof(struct spki_record)