-2
...問題的printf
uint64_t expires_time; ngx_memcpy(data, in, in_len); data_size = in_len + sizeof(expires_time); expires_time = (uint64_t) now; expires_time = ngx_http_encrypted_session_htonll(expires_time); ngx_memcpy(data + in_len, (u_char *) &expires_time, sizeof(expires_time)); MD5(data, data_size, p); static inline uint64_t ngx_http_encrypted_session_htonll(uint64_t n) { #ifdef htonll return htonll(n); # else return ((uint64_t) htonl(n) > 32); #endif }
爲什麼我想嘗試printf("%s",data)
結果:在ngx_memcpy
應添加expires_time
此字符串?如何在字符串長度中查看md5 data_size
?
這是什麼我什至沒有 – 2010-12-03 10:51:07
哈哈! ! ! ! ! ! – 2010-12-03 10:51:55