Output plain text representation to a FILE pointer.
This function will write a plain text representation of this JWT object
without Base64 encoding. This only writes the header and body, and does
not compute the signature or encryption (if such an algorithm were being
used).
Note, this may change the content of JWT header if algorithm is set
on the JWT object. If algorithm is set (jwt_set_alg was called
on the jwt object) then dumping JWT attempts to append 'typ' header.
If the 'typ' header already exists, then it is left untouched,
otherwise it is added with default value of "JWT".
@param jwt Pointer to a JWT object.
@param fp Valid FILE pointer to write data to.
@param pretty Enables better visual formatting of output. Generally only
used for debugging.
@return Returns 0 on success, valid errno otherwise.
Output plain text representation to a FILE pointer.
This function will write a plain text representation of this JWT object without Base64 encoding. This only writes the header and body, and does not compute the signature or encryption (if such an algorithm were being used).
Note, this may change the content of JWT header if algorithm is set on the JWT object. If algorithm is set (jwt_set_alg was called on the jwt object) then dumping JWT attempts to append 'typ' header. If the 'typ' header already exists, then it is left untouched, otherwise it is added with default value of "JWT".
@param jwt Pointer to a JWT object. @param fp Valid FILE pointer to write data to. @param pretty Enables better visual formatting of output. Generally only used for debugging. @return Returns 0 on success, valid errno otherwise.