c - nginx: support user-defined encryption method -


i'm new nginx, far know, nginx has ngx_http_ssl_module https.
got problem received tcp packet encrypted in user defined encryption method , can't use ngx_http_ssl_module. decrypted content http packet, can handled normal http module later on.

what have done modify source code in ngx_recv.c,

n=recv(c->fd,buf,size,0);//we can decrypt buf here 

it can solve problem don't want modify source code, want add custom nginx module it. seems ngx http core module handle tcp event internally, want add own handler decrypt tcp packet. in source code, check ngx_http_ssl macro ssl.

i want write 3rd party module decrypt tcp packet. if add own http module, seems can never handle tcp packet myself, i'm stuck. give me advice it, or correct me if i'm wrong, or provide similar 3rd party module can study it?

thanks in advance


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -