comparison httpauth.c @ 6036:201152a121b5 libavformat

Make ff_random_get_seed public, rename to av_get_random_seed, export the header Keep an old ff_ named function for binary compatibility until the next major bump.
author mstorsjo
date Sun, 23 May 2010 08:53:40 +0000
parents 9f1b267a30f5
children 54d3a9240339
comparison
equal deleted inserted replaced
6035:746b2040c34e 6036:201152a121b5
198 digest->nc++; 198 digest->nc++;
199 snprintf(nc, sizeof(nc), "%08x", digest->nc); 199 snprintf(nc, sizeof(nc), "%08x", digest->nc);
200 200
201 /* Generate a client nonce. */ 201 /* Generate a client nonce. */
202 for (i = 0; i < 2; i++) 202 for (i = 0; i < 2; i++)
203 cnonce_buf[i] = ff_random_get_seed(); 203 cnonce_buf[i] = av_get_random_seed();
204 ff_data_to_hex(cnonce, (const uint8_t*) cnonce_buf, sizeof(cnonce_buf), 1); 204 ff_data_to_hex(cnonce, (const uint8_t*) cnonce_buf, sizeof(cnonce_buf), 1);
205 cnonce[2*sizeof(cnonce_buf)] = 0; 205 cnonce[2*sizeof(cnonce_buf)] = 0;
206 206
207 md5ctx = av_malloc(av_md5_size); 207 md5ctx = av_malloc(av_md5_size);
208 if (!md5ctx) 208 if (!md5ctx)