00001 /* 00002 * Licensed to the Apache Software Foundation (ASF) under one 00003 * or more contributor license agreements. See the NOTICE file 00004 * distributed with this work for additional information 00005 * regarding copyright ownership. The ASF licenses this file 00006 * to you under the Apache License, Version 2.0 (the 00007 * "License"); you may not use this file except in compliance 00008 * with the License. You may obtain a copy of the License at 00009 * 00010 * http://www.apache.org/licenses/LICENSE-2.0 00011 * 00012 * Unless required by applicable law or agreed to in writing, 00013 * software distributed under the License is distributed on an 00014 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 00015 * KIND, either express or implied. See the License for the 00016 * specific language governing permissions and limitations 00017 * under the License. 00018 */ 00019 00020 00021 #ifndef __GUACD_SOCKET_SSL_H 00022 #define __GUACD_SOCKET_SSL_H 00023 00031 #include "socket-types.h" 00032 00033 #include <openssl/ssl.h> 00034 00038 typedef struct guac_socket_ssl_data { 00039 00044 int fd; 00045 00049 SSL_CTX* context; 00050 00055 SSL* ssl; 00056 00057 } guac_socket_ssl_data; 00058 00074 guac_socket* guac_socket_open_secure(SSL_CTX* context, int fd); 00075 00076 #endif 00077