projects
/
project
/
ustream-ssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
polarssl: init certificate storage
[project/ustream-ssl.git]
/
ustream-openssl.h
diff --git
a/ustream-openssl.h
b/ustream-openssl.h
index
76d2bad
..
afff22b
100644
(file)
--- a/
ustream-openssl.h
+++ b/
ustream-openssl.h
@@
-23,20
+23,25
@@
#include <openssl/err.h>
#include <stdbool.h>
#include <openssl/err.h>
#include <stdbool.h>
+void __ustream_ssl_session_free(void *ssl);
+
static inline void *__ustream_ssl_session_new(void *ctx)
{
return SSL_new(ctx);
}
static inline void *__ustream_ssl_session_new(void *ctx)
{
return SSL_new(ctx);
}
-static inline
void __ustream_ssl_session_free(void *ssl
)
+static inline
char *__ustream_ssl_strerror(int error, char *buffer, int len
)
{
{
- SSL_shutdown(ssl);
- SSL_free(ssl);
+ return ERR_error_string(error, buffer);
}
}
-static inline
char *__ustream_ssl_strerror(int error, char *buffer, int len
)
+static inline
void __ustream_ssl_update_peer_cn(struct ustream_ssl *us
)
{
{
- return ERR_error_string(error, buffer);
+}
+
+static inline void __ustream_ssl_set_server_name(struct ustream_ssl *us)
+{
+ SSL_set_tlsext_host_name(us->ssl, us->server_name);
}
#endif
}
#endif