|  | @@ -338,8 +338,8 @@ sha_digest(char *out, char *data, int len)
 | 
		
	
		
			
			| 338 | 338 |  {
 | 
		
	
		
			
			| 339 | 339 |  	SHA_INFO ctx;
 | 
		
	
		
			
			| 340 | 340 |  	sha_init(&ctx);
 | 
		
	
		
			
			| 341 |  | -	sha_update(&ctx, data, len);
 | 
		
	
		
			
			| 342 |  | -	sha_final(out, &ctx);
 | 
		
	
		
			
			|  | 341 | +	sha_update(&ctx, (sha_byte*)data, len);
 | 
		
	
		
			
			|  | 342 | +	sha_final((sha_byte*)out, &ctx);
 | 
		
	
		
			
			| 343 | 343 |  }
 | 
		
	
		
			
			| 344 | 344 |  
 | 
		
	
		
			
			| 345 | 345 |  void
 | 
		
	
	
		
			
			|  | @@ -364,23 +364,23 @@ srs_hmac_init(srs_hmac_ctx_t *ctx, char *secret, int len)
 | 
		
	
		
			
			| 364 | 364 |  	memset(sbuf, 0, SHA_BLOCKSIZE);
 | 
		
	
		
			
			| 365 | 365 |  
 | 
		
	
		
			
			| 366 | 366 |  	sha_init(&ctx->sctx);
 | 
		
	
		
			
			| 367 |  | -	sha_update(&ctx->sctx, ctx->ipad, SHA_BLOCKSIZE);
 | 
		
	
		
			
			|  | 367 | +	sha_update(&ctx->sctx, (sha_byte*)ctx->ipad, SHA_BLOCKSIZE);
 | 
		
	
		
			
			| 368 | 368 |  }
 | 
		
	
		
			
			| 369 | 369 |  
 | 
		
	
		
			
			| 370 | 370 |  void
 | 
		
	
		
			
			| 371 | 371 |  srs_hmac_update(srs_hmac_ctx_t *ctx, char *data, int len)
 | 
		
	
		
			
			| 372 | 372 |  {
 | 
		
	
		
			
			| 373 |  | -	sha_update(&ctx->sctx, data, len);
 | 
		
	
		
			
			|  | 373 | +	sha_update(&ctx->sctx, (sha_byte*)data, len);
 | 
		
	
		
			
			| 374 | 374 |  }
 | 
		
	
		
			
			| 375 | 375 |  
 | 
		
	
		
			
			| 376 | 376 |  void
 | 
		
	
		
			
			| 377 | 377 |  srs_hmac_fini(srs_hmac_ctx_t *ctx, char *out)
 | 
		
	
		
			
			| 378 | 378 |  {
 | 
		
	
		
			
			| 379 |  | -	char	 buf[SHA_DIGESTSIZE + 1];
 | 
		
	
		
			
			|  | 379 | +	sha_byte buf[SHA_DIGESTSIZE + 1];
 | 
		
	
		
			
			| 380 | 380 |  
 | 
		
	
		
			
			| 381 | 381 |  	sha_final(buf, &ctx->sctx);
 | 
		
	
		
			
			| 382 | 382 |  	sha_init(&ctx->sctx);
 | 
		
	
		
			
			| 383 |  | -	sha_update(&ctx->sctx, ctx->opad, SHA_BLOCKSIZE);
 | 
		
	
		
			
			|  | 383 | +	sha_update(&ctx->sctx, (sha_byte*)ctx->opad, SHA_BLOCKSIZE);
 | 
		
	
		
			
			| 384 | 384 |  	sha_update(&ctx->sctx, buf, SHA_DIGESTSIZE);
 | 
		
	
		
			
			| 385 |  | -	sha_final(out, &ctx->sctx);
 | 
		
	
		
			
			|  | 385 | +	sha_final((sha_byte*)out, &ctx->sctx);
 | 
		
	
		
			
			| 386 | 386 |  }
 |