65 for (i = 0; i <
sizeof(
md5); i++)
66 snprintf(buf + i*2, 3,
"%02x", md5[i]);
80 if (fwrite(buf, 1, i*2+1, stdout) < i*2+1)
int ffurl_open_whitelist(URLContext **puc, const char *filename, int flags, const AVIOInterruptCB *int_cb, AVDictionary **options, const char *whitelist, const char *blacklist, URLContext *parent)
Create an URLContext for accessing to the resource indicated by url, and open it. ...
memory handling functions
int ffurl_write(URLContext *h, const unsigned char *buf, int size)
Write size bytes from buf to the resource accessed by h.
AVIOInterruptCB interrupt_callback
#define AVIO_FLAG_WRITE
write-only
void av_md5_update(AVMD5 *ctx, const uint8_t *src, int len)
Update hash value.
struct AVMD5 * av_md5_alloc(void)
Allocate an AVMD5 context.
const URLProtocol ff_md5_protocol
static int md5_write(URLContext *h, const unsigned char *buf, int size)
const char * protocol_whitelist
static int md5_open(URLContext *h, const char *filename, int flags)
const char * protocol_blacklist
void av_md5_init(AVMD5 *ctx)
Initialize MD5 hashing.
static int md5_close(URLContext *h)
void av_md5_final(AVMD5 *ctx, uint8_t *dst)
Finish hashing and output digest value.
int ffurl_close(URLContext *h)
int av_strstart(const char *str, const char *pfx, const char **ptr)
Return non-zero if pfx is a prefix of str.
char * filename
specified URL
unbuffered private I/O API