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 00013 /* if SSL is on already, just return success */ 00014 if (rsComm->ssl_on) { 00015 return 0; 00016 } 00017 00018 /* Let the agent service loop know that it needs to 00019 setup SSL before the next API call */ 00020 rsComm->ssl_do_accept = 1; 00021 00022 return 0; 00023 #else 00024 return SSL_NOT_BUILT_INTO_SERVER; 00025 #endif 00026 } 00027