00001 /*** Copyright (c), The Regents of the University of California *** 00002 *** For more information please refer to files in the COPYRIGHT directory ***/ 00003 00004 /* See sslStart.h for a description of this API call.*/ 00005 00006 #include "sslStart.h" 00007 00008 int 00009 rsSslStart(rsComm_t *rsComm, sslStartInp_t *sslStartInp) 00010 { 00011 #if defined(USE_SSL) 00012 /* if SSL is on already, just return success */ 00013 if (rsComm->ssl_on) { 00014 return 0; 00015 } 00016 00017 /* Let the agent service loop know that it needs to 00018 setup SSL before the next API call */ 00019 rsComm->ssl_do_accept = 1; 00020 00021 return 0; 00022 #else 00023 return SSL_NOT_BUILT_INTO_SERVER; 00024 #endif 00025 } 00026