This will create and write the complete JWT object to FILE. All parts
will be Base64 encoded and signatures or encryption will be applied if
the algorithm specified requires it.
@param jwt Pointer to a JWT object.
@param fp Valid FILE pointer to write data to.
@return Returns 0 on success, valid errno otherwise.
Fully encode a JWT object and write it to FILE.
This will create and write the complete JWT object to FILE. All parts will be Base64 encoded and signatures or encryption will be applied if the algorithm specified requires it.
@param jwt Pointer to a JWT object. @param fp Valid FILE pointer to write data to. @return Returns 0 on success, valid errno otherwise.