\hypertarget{group__Ecore__Con__SSL__Group}{}\doxysection{Ecore Connection SSL Functions}
\label{group__Ecore__Con__SSL__Group}\index{Ecore Connection SSL Functions@{Ecore Connection SSL Functions}}


Functions that operate on Ecore connection objects pertaining to SSL.  


\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} int \mbox{\hyperlink{group__Ecore__Con__SSL__Group_gaa5d2328b414bd5ffb01466b853c45709}{ecore\+\_\+con\+\_\+ssl\+\_\+available\+\_\+get}} (void)
\begin{DoxyCompactList}\small\item\em Returns if SSL support is available. \end{DoxyCompactList}\item 
\mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Ecore__Con__SSL__Group_ga3e2cc9dc19a76ed7d0cd69c08b2482d5}{ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+cert\+\_\+add}} (\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$svr, const char $\ast$cert)
\begin{DoxyCompactList}\small\item\em Adds an SSL certificate for use in ecore\+\_\+con functions. \end{DoxyCompactList}\item 
\mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Ecore__Con__SSL__Group_ga336f50cd629b7bab5f45c2f13fe2d614}{ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+privkey\+\_\+add}} (\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$svr, const char $\ast$key\+\_\+file)
\begin{DoxyCompactList}\small\item\em Adds an SSL private key for use in ecore\+\_\+con functions. \end{DoxyCompactList}\item 
\mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Ecore__Con__SSL__Group_ga27487f93b253246bea5e717287892cf9}{ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+crl\+\_\+add}} (\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$svr, const char $\ast$crl\+\_\+file)
\begin{DoxyCompactList}\small\item\em Adds an SSL CRL for use in ecore\+\_\+con functions. \end{DoxyCompactList}\item 
\mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Ecore__Con__SSL__Group_ga48d588d6dd1fb2710c64c57d20bd795c}{ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+cafile\+\_\+add}} (\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$svr, const char $\ast$ca\+\_\+file)
\begin{DoxyCompactList}\small\item\em Adds an SSL CA file for use in ecore\+\_\+con functions. \end{DoxyCompactList}\item 
\mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} void \mbox{\hyperlink{group__Ecore__Con__SSL__Group_ga72320d4fd96ea97997850d1fc32a88b7}{ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+verify}} (\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$svr)
\begin{DoxyCompactList}\small\item\em Enables certificate verification on a server object. \end{DoxyCompactList}\item 
\mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} void \mbox{\hyperlink{group__Ecore__Con__SSL__Group_ga6ceab74f3cdf03a7485acddda01ebd17}{ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+verify\+\_\+basic}} (\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$svr)
\begin{DoxyCompactList}\small\item\em Enables hostname-\/based certificate verification on a server object. \end{DoxyCompactList}\item 
\mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} void \mbox{\hyperlink{group__Ecore__Con__SSL__Group_gab5289df02f73e8342ae66002b4bb779b}{ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+verify\+\_\+name\+\_\+set}} (\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$svr, const char $\ast$name)
\begin{DoxyCompactList}\small\item\em Sets the hostname to verify against in certificate verification. \end{DoxyCompactList}\item 
\mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} const char $\ast$ \mbox{\hyperlink{group__Ecore__Con__SSL__Group_ga8b309716785644c47b0553db7a5d1c0a}{ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+verify\+\_\+name\+\_\+get}} (\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$svr)
\begin{DoxyCompactList}\small\item\em Gets the hostname to verify against in certificate verification. \end{DoxyCompactList}\item 
\mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Ecore__Con__SSL__Group_gaa48f98d4fd439d1bb8dc00cb91e897a5}{ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+upgrade}} (\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$svr, Ecore\+\_\+\+Con\+\_\+\+Type ssl\+\_\+type)
\begin{DoxyCompactList}\small\item\em Upgrades a connection to a specified level of encryption. \end{DoxyCompactList}\item 
\mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Ecore__Con__SSL__Group_gae753d72485b98ba0503a94cf4584c381}{ecore\+\_\+con\+\_\+ssl\+\_\+client\+\_\+upgrade}} (\mbox{\hyperlink{group__Ecore__Con__Client__Group_gae9afe250f5420f4731d1a94050275756}{Ecore\+\_\+\+Con\+\_\+\+Client}} $\ast$cl, Ecore\+\_\+\+Con\+\_\+\+Type ssl\+\_\+type)
\begin{DoxyCompactList}\small\item\em Upgrades a connection to a specified level of encryption. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Functions that operate on Ecore connection objects pertaining to SSL. 



\doxysubsection{Function Documentation}
\mbox{\Hypertarget{group__Ecore__Con__SSL__Group_gaa5d2328b414bd5ffb01466b853c45709}\label{group__Ecore__Con__SSL__Group_gaa5d2328b414bd5ffb01466b853c45709}} 
\index{Ecore Connection SSL Functions@{Ecore Connection SSL Functions}!ecore\_con\_ssl\_available\_get@{ecore\_con\_ssl\_available\_get}}
\index{ecore\_con\_ssl\_available\_get@{ecore\_con\_ssl\_available\_get}!Ecore Connection SSL Functions@{Ecore Connection SSL Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_con\_ssl\_available\_get()}{ecore\_con\_ssl\_available\_get()}}
{\footnotesize\ttfamily \mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} int ecore\+\_\+con\+\_\+ssl\+\_\+available\+\_\+get (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Returns if SSL support is available. 

\begin{DoxyReturn}{Returns}
{\ttfamily 1} if SSL is available and provided by gnutls, {\ttfamily 2} if SSL is available and provided by openssl, {\ttfamily 0} if it is not available. 
\end{DoxyReturn}


Referenced by ecore\+\_\+ipc\+\_\+ssl\+\_\+available\+\_\+get().

\mbox{\Hypertarget{group__Ecore__Con__SSL__Group_ga3e2cc9dc19a76ed7d0cd69c08b2482d5}\label{group__Ecore__Con__SSL__Group_ga3e2cc9dc19a76ed7d0cd69c08b2482d5}} 
\index{Ecore Connection SSL Functions@{Ecore Connection SSL Functions}!ecore\_con\_ssl\_server\_cert\_add@{ecore\_con\_ssl\_server\_cert\_add}}
\index{ecore\_con\_ssl\_server\_cert\_add@{ecore\_con\_ssl\_server\_cert\_add}!Ecore Connection SSL Functions@{Ecore Connection SSL Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_con\_ssl\_server\_cert\_add()}{ecore\_con\_ssl\_server\_cert\_add()}}
{\footnotesize\ttfamily \mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+cert\+\_\+add (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$}]{svr,  }\item[{const char $\ast$}]{cert }\end{DoxyParamCaption})}



Adds an SSL certificate for use in ecore\+\_\+con functions. 

Use this function to add a SSL PEM certificate. Simply specify the cert here to use it in the server object for connecting or listening. If there is an error loading the certificate, an error will automatically be logged. 
\begin{DoxyParams}{Parameters}
{\em svr} & The server object \\
\hline
{\em cert} & The path to the certificate. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
{\ttfamily EINA\+\_\+\+FALSE} if the file cannot be loaded, otherwise {\ttfamily EINA\+\_\+\+TRUE}. 
\end{DoxyReturn}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{ecore_con_server_example_8c-example}{ecore\+\_\+con\+\_\+server\+\_\+example.\+c}}.\end{Desc}


References EINA\+\_\+\+FALSE, eina\+\_\+list\+\_\+append(), EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL, EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+TRUE\+\_\+\+RETURN\+\_\+\+VAL, eina\+\_\+stringshare\+\_\+add(), and EINA\+\_\+\+TRUE.

\mbox{\Hypertarget{group__Ecore__Con__SSL__Group_ga336f50cd629b7bab5f45c2f13fe2d614}\label{group__Ecore__Con__SSL__Group_ga336f50cd629b7bab5f45c2f13fe2d614}} 
\index{Ecore Connection SSL Functions@{Ecore Connection SSL Functions}!ecore\_con\_ssl\_server\_privkey\_add@{ecore\_con\_ssl\_server\_privkey\_add}}
\index{ecore\_con\_ssl\_server\_privkey\_add@{ecore\_con\_ssl\_server\_privkey\_add}!Ecore Connection SSL Functions@{Ecore Connection SSL Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_con\_ssl\_server\_privkey\_add()}{ecore\_con\_ssl\_server\_privkey\_add()}}
{\footnotesize\ttfamily \mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+privkey\+\_\+add (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$}]{svr,  }\item[{const char $\ast$}]{key\+\_\+file }\end{DoxyParamCaption})}



Adds an SSL private key for use in ecore\+\_\+con functions. 

Use this function to add a SSL PEM private key. Simply specify the key file here to use it in the server object for connecting or listening. If there is an error loading the key, an error will automatically be logged. 
\begin{DoxyParams}{Parameters}
{\em svr} & The server object. \\
\hline
{\em key\+\_\+file} & The path to the key file. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
{\ttfamily EINA\+\_\+\+FALSE} if the file cannot be loaded, otherwise {\ttfamily EINA\+\_\+\+TRUE}. 
\end{DoxyReturn}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{ecore_con_server_example_8c-example}{ecore\+\_\+con\+\_\+server\+\_\+example.\+c}}.\end{Desc}


References EINA\+\_\+\+FALSE, eina\+\_\+list\+\_\+append(), EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL, EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+TRUE\+\_\+\+RETURN\+\_\+\+VAL, eina\+\_\+stringshare\+\_\+add(), and EINA\+\_\+\+TRUE.

\mbox{\Hypertarget{group__Ecore__Con__SSL__Group_ga27487f93b253246bea5e717287892cf9}\label{group__Ecore__Con__SSL__Group_ga27487f93b253246bea5e717287892cf9}} 
\index{Ecore Connection SSL Functions@{Ecore Connection SSL Functions}!ecore\_con\_ssl\_server\_crl\_add@{ecore\_con\_ssl\_server\_crl\_add}}
\index{ecore\_con\_ssl\_server\_crl\_add@{ecore\_con\_ssl\_server\_crl\_add}!Ecore Connection SSL Functions@{Ecore Connection SSL Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_con\_ssl\_server\_crl\_add()}{ecore\_con\_ssl\_server\_crl\_add()}}
{\footnotesize\ttfamily \mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+crl\+\_\+add (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$}]{svr,  }\item[{const char $\ast$}]{crl\+\_\+file }\end{DoxyParamCaption})}



Adds an SSL CRL for use in ecore\+\_\+con functions. 

Use this function to add a SSL PEM CRL file. Simply specify the CRL file here to use it in the server object for connecting or listening. If there is an error loading the CRL, an error will automatically be logged. 
\begin{DoxyParams}{Parameters}
{\em svr} & The server object. \\
\hline
{\em crl\+\_\+file} & The path to the CRL file. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
{\ttfamily EINA\+\_\+\+FALSE} if the file cannot be loaded, otherwise {\ttfamily EINA\+\_\+\+TRUE}. 
\end{DoxyReturn}


References EINA\+\_\+\+FALSE, eina\+\_\+list\+\_\+append(), EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL, EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+TRUE\+\_\+\+RETURN\+\_\+\+VAL, eina\+\_\+stringshare\+\_\+add(), and EINA\+\_\+\+TRUE.

\mbox{\Hypertarget{group__Ecore__Con__SSL__Group_ga48d588d6dd1fb2710c64c57d20bd795c}\label{group__Ecore__Con__SSL__Group_ga48d588d6dd1fb2710c64c57d20bd795c}} 
\index{Ecore Connection SSL Functions@{Ecore Connection SSL Functions}!ecore\_con\_ssl\_server\_cafile\_add@{ecore\_con\_ssl\_server\_cafile\_add}}
\index{ecore\_con\_ssl\_server\_cafile\_add@{ecore\_con\_ssl\_server\_cafile\_add}!Ecore Connection SSL Functions@{Ecore Connection SSL Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_con\_ssl\_server\_cafile\_add()}{ecore\_con\_ssl\_server\_cafile\_add()}}
{\footnotesize\ttfamily \mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+cafile\+\_\+add (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$}]{svr,  }\item[{const char $\ast$}]{ca\+\_\+file }\end{DoxyParamCaption})}



Adds an SSL CA file for use in ecore\+\_\+con functions. 

Use this function to add a SSL PEM CA file. Simply specify the file here to use it in the server object for connecting or listening. If there is an error loading the CAs, an error will automatically be logged. 
\begin{DoxyParams}{Parameters}
{\em svr} & The server object. \\
\hline
{\em ca\+\_\+file} & The path to the CA file. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
{\ttfamily EINA\+\_\+\+FALSE} if the file cannot be loaded, otherwise {\ttfamily EINA\+\_\+\+TRUE}. 
\end{DoxyReturn}
\begin{DoxyNote}{Note}
since 1.\+2, this function can load directories. 
\end{DoxyNote}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{ecore_con_client_example_8c-example}{ecore\+\_\+con\+\_\+client\+\_\+example.\+c}}.\end{Desc}


References EINA\+\_\+\+FALSE, eina\+\_\+list\+\_\+append(), EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL, EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+TRUE\+\_\+\+RETURN\+\_\+\+VAL, eina\+\_\+stringshare\+\_\+add(), and EINA\+\_\+\+TRUE.

\mbox{\Hypertarget{group__Ecore__Con__SSL__Group_ga72320d4fd96ea97997850d1fc32a88b7}\label{group__Ecore__Con__SSL__Group_ga72320d4fd96ea97997850d1fc32a88b7}} 
\index{Ecore Connection SSL Functions@{Ecore Connection SSL Functions}!ecore\_con\_ssl\_server\_verify@{ecore\_con\_ssl\_server\_verify}}
\index{ecore\_con\_ssl\_server\_verify@{ecore\_con\_ssl\_server\_verify}!Ecore Connection SSL Functions@{Ecore Connection SSL Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_con\_ssl\_server\_verify()}{ecore\_con\_ssl\_server\_verify()}}
{\footnotesize\ttfamily \mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} void ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+verify (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$}]{svr }\end{DoxyParamCaption})}



Enables certificate verification on a server object. 

Call this function on a server object before main loop has started to enable verification of certificates against loaded certificates. 
\begin{DoxyParams}{Parameters}
{\em svr} & The server object \\
\hline
\end{DoxyParams}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{ecore_con_client_example_8c-example}{ecore\+\_\+con\+\_\+client\+\_\+example.\+c}}.\end{Desc}


References EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN, EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+TRUE\+\_\+\+RETURN, EINA\+\_\+\+TRUE, and WRN.

\mbox{\Hypertarget{group__Ecore__Con__SSL__Group_ga6ceab74f3cdf03a7485acddda01ebd17}\label{group__Ecore__Con__SSL__Group_ga6ceab74f3cdf03a7485acddda01ebd17}} 
\index{Ecore Connection SSL Functions@{Ecore Connection SSL Functions}!ecore\_con\_ssl\_server\_verify\_basic@{ecore\_con\_ssl\_server\_verify\_basic}}
\index{ecore\_con\_ssl\_server\_verify\_basic@{ecore\_con\_ssl\_server\_verify\_basic}!Ecore Connection SSL Functions@{Ecore Connection SSL Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_con\_ssl\_server\_verify\_basic()}{ecore\_con\_ssl\_server\_verify\_basic()}}
{\footnotesize\ttfamily \mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} void ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+verify\+\_\+basic (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$}]{svr }\end{DoxyParamCaption})}



Enables hostname-\/based certificate verification on a server object. 

Call this function on a server object before main loop has started to enable verification of certificates using ONLY their hostnames. 
\begin{DoxyParams}{Parameters}
{\em svr} & The server object. \\
\hline
\end{DoxyParams}
\begin{DoxyNote}{Note}
This function has no effect when used on a listening server created by ecore\+\_\+con\+\_\+server\+\_\+add. 
\end{DoxyNote}
\begin{DoxySince}{Since}
1.\+1 
\end{DoxySince}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{ecore_con_client_example_8c-example}{ecore\+\_\+con\+\_\+client\+\_\+example.\+c}}.\end{Desc}


References EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN, EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+TRUE\+\_\+\+RETURN, EINA\+\_\+\+TRUE, and WRN.

\mbox{\Hypertarget{group__Ecore__Con__SSL__Group_gab5289df02f73e8342ae66002b4bb779b}\label{group__Ecore__Con__SSL__Group_gab5289df02f73e8342ae66002b4bb779b}} 
\index{Ecore Connection SSL Functions@{Ecore Connection SSL Functions}!ecore\_con\_ssl\_server\_verify\_name\_set@{ecore\_con\_ssl\_server\_verify\_name\_set}}
\index{ecore\_con\_ssl\_server\_verify\_name\_set@{ecore\_con\_ssl\_server\_verify\_name\_set}!Ecore Connection SSL Functions@{Ecore Connection SSL Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_con\_ssl\_server\_verify\_name\_set()}{ecore\_con\_ssl\_server\_verify\_name\_set()}}
{\footnotesize\ttfamily \mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} void ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+verify\+\_\+name\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$}]{svr,  }\item[{const char $\ast$}]{name }\end{DoxyParamCaption})}



Sets the hostname to verify against in certificate verification. 

Sometimes the certificate hostname will not match the hostname that you are connecting to, and will instead match a different name. An example of this is that if you connect to talk.\+google.\+com to use Google Talk, you receive Google\textquotesingle{}s certificate for gmail.\+com. This certificate should be trusted, and so you must call this function with \char`\"{}gmail.\+com\char`\"{} as {\ttfamily name}. See RFC2818 for more details. 
\begin{DoxyParams}{Parameters}
{\em svr} & The server object. \\
\hline
{\em name} & The hostname to verify against \\
\hline
\end{DoxyParams}
\begin{DoxySince}{Since}
1.\+2 
\end{DoxySince}


References EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN, EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+TRUE\+\_\+\+RETURN, and eina\+\_\+stringshare\+\_\+replace().

\mbox{\Hypertarget{group__Ecore__Con__SSL__Group_ga8b309716785644c47b0553db7a5d1c0a}\label{group__Ecore__Con__SSL__Group_ga8b309716785644c47b0553db7a5d1c0a}} 
\index{Ecore Connection SSL Functions@{Ecore Connection SSL Functions}!ecore\_con\_ssl\_server\_verify\_name\_get@{ecore\_con\_ssl\_server\_verify\_name\_get}}
\index{ecore\_con\_ssl\_server\_verify\_name\_get@{ecore\_con\_ssl\_server\_verify\_name\_get}!Ecore Connection SSL Functions@{Ecore Connection SSL Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_con\_ssl\_server\_verify\_name\_get()}{ecore\_con\_ssl\_server\_verify\_name\_get()}}
{\footnotesize\ttfamily \mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} const char$\ast$ ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+verify\+\_\+name\+\_\+get (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$}]{svr }\end{DoxyParamCaption})}



Gets the hostname to verify against in certificate verification. 

This function returns the name which will be used to validate the SSL certificate common name (CN) or alt name (subject\+Alt\+Name). It will default to the {\ttfamily name} param in \mbox{\hyperlink{group__Ecore__Con__Server__Group_gac7c96fcc5514c54c7b6ba5b18804f0ed}{ecore\+\_\+con\+\_\+server\+\_\+connect()}}, but can be changed with \mbox{\hyperlink{group__Ecore__Con__SSL__Group_gab5289df02f73e8342ae66002b4bb779b}{ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+verify\+\_\+name\+\_\+set()}}. 
\begin{DoxyParams}{Parameters}
{\em svr} & The server object. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The hostname which will be used 
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+2 
\end{DoxySince}
\mbox{\Hypertarget{group__Ecore__Con__SSL__Group_gaa48f98d4fd439d1bb8dc00cb91e897a5}\label{group__Ecore__Con__SSL__Group_gaa48f98d4fd439d1bb8dc00cb91e897a5}} 
\index{Ecore Connection SSL Functions@{Ecore Connection SSL Functions}!ecore\_con\_ssl\_server\_upgrade@{ecore\_con\_ssl\_server\_upgrade}}
\index{ecore\_con\_ssl\_server\_upgrade@{ecore\_con\_ssl\_server\_upgrade}!Ecore Connection SSL Functions@{Ecore Connection SSL Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_con\_ssl\_server\_upgrade()}{ecore\_con\_ssl\_server\_upgrade()}}
{\footnotesize\ttfamily \mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+upgrade (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$}]{svr,  }\item[{Ecore\+\_\+\+Con\+\_\+\+Type}]{ssl\+\_\+type }\end{DoxyParamCaption})}



Upgrades a connection to a specified level of encryption. 

Use this function to begin an SSL handshake on a connection (STARTTLS or similar). Once the upgrade has been completed, an ECORE\+\_\+\+CON\+\_\+\+EVENT\+\_\+\+SERVER\+\_\+\+UPGRADE event will be emitted. The connection should be treated as disconnected until the next event. 
\begin{DoxyParams}{Parameters}
{\em svr} & The server object. \\
\hline
{\em ssl\+\_\+type} & The SSL connection type (ONLY). \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
{\ttfamily EINA\+\_\+\+FALSE} if the connection cannot be upgraded, otherwise {\ttfamily EINA\+\_\+\+TRUE}. 
\end{DoxyReturn}
\begin{DoxyNote}{Note}
This function is NEVER to be used on a server object created with ecore\+\_\+con\+\_\+server\+\_\+add. 
\end{DoxyNote}
\begin{DoxyWarning}{Warning}
Setting a wrong value for {\ttfamily ssl\+\_\+type} WILL mess up your program. 
\end{DoxyWarning}
\begin{DoxySince}{Since}
1.\+1 
\end{DoxySince}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{ecore_con_client_example_8c-example}{ecore\+\_\+con\+\_\+client\+\_\+example.\+c}}.\end{Desc}


References ecore\+\_\+animator\+\_\+frametime\+\_\+get(), ecore\+\_\+con\+\_\+server\+\_\+flush(), ecore\+\_\+time\+\_\+get(), EINA\+\_\+\+FALSE, EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+FALSE\+\_\+\+RETURN\+\_\+\+VAL, EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL, EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+TRUE\+\_\+\+RETURN\+\_\+\+VAL, EINA\+\_\+\+TRUE, and ERR.

\mbox{\Hypertarget{group__Ecore__Con__SSL__Group_gae753d72485b98ba0503a94cf4584c381}\label{group__Ecore__Con__SSL__Group_gae753d72485b98ba0503a94cf4584c381}} 
\index{Ecore Connection SSL Functions@{Ecore Connection SSL Functions}!ecore\_con\_ssl\_client\_upgrade@{ecore\_con\_ssl\_client\_upgrade}}
\index{ecore\_con\_ssl\_client\_upgrade@{ecore\_con\_ssl\_client\_upgrade}!Ecore Connection SSL Functions@{Ecore Connection SSL Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_con\_ssl\_client\_upgrade()}{ecore\_con\_ssl\_client\_upgrade()}}
{\footnotesize\ttfamily \mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} ecore\+\_\+con\+\_\+ssl\+\_\+client\+\_\+upgrade (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__Con__Client__Group_gae9afe250f5420f4731d1a94050275756}{Ecore\+\_\+\+Con\+\_\+\+Client}} $\ast$}]{cl,  }\item[{Ecore\+\_\+\+Con\+\_\+\+Type}]{ssl\+\_\+type }\end{DoxyParamCaption})}



Upgrades a connection to a specified level of encryption. 

Use this function to begin an SSL handshake on a connection (STARTTLS or similar). Once the upgrade has been completed, an ECORE\+\_\+\+CON\+\_\+\+EVENT\+\_\+\+CLIENT\+\_\+\+UPGRADE event will be emitted. The connection should be treated as disconnected until the next event. 
\begin{DoxyParams}{Parameters}
{\em cl} & The client object. \\
\hline
{\em ssl\+\_\+type} & The SSL connection type (ONLY). \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
{\ttfamily EINA\+\_\+\+FALSE} if the connection cannot be upgraded, otherwise {\ttfamily EINA\+\_\+\+TRUE}. 
\end{DoxyReturn}
\begin{DoxyWarning}{Warning}
Setting a wrong value for {\ttfamily ssl\+\_\+type} WILL mess up your program. 
\end{DoxyWarning}
\begin{DoxySince}{Since}
1.\+1 
\end{DoxySince}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{ecore_con_server_example_8c-example}{ecore\+\_\+con\+\_\+server\+\_\+example.\+c}}.\end{Desc}


References ecore\+\_\+animator\+\_\+frametime\+\_\+get(), ecore\+\_\+con\+\_\+client\+\_\+flush(), ecore\+\_\+time\+\_\+get(), EINA\+\_\+\+FALSE, EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+FALSE\+\_\+\+RETURN\+\_\+\+VAL, EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+TRUE\+\_\+\+RETURN\+\_\+\+VAL, and ERR.

