Auth SLL & CGI function

Hello,
how I can run CGI function in web, which it’s with auth SSL?
I red, then int sspec_addCGI(char* name, void (*fptr)(), word servermask); is only for SERVER_HTTP.

So, I need run some function in Dynamic, which it read a field with a “thetime” in second and transforms this to userfriently time by function mktm(&thetm, thetime); and print on webpage by cgi_sendstring(state,buffer);

Any idea how I can do this in secure auth SSL web?