Paul Bakker | 0a59707 | 2012-09-25 21:55:46 +0000 | [diff] [blame] | 1 | /* |
| 2 | * SSL session cache implementation |
| 3 | * |
Paul Bakker | 7dc4c44 | 2014-02-01 22:50:26 +0100 | [diff] [blame] | 4 | * Copyright (C) 2006-2014, Brainspark B.V. |
Paul Bakker | 0a59707 | 2012-09-25 21:55:46 +0000 | [diff] [blame] | 5 | * |
| 6 | * This file is part of PolarSSL (http://www.polarssl.org) |
| 7 | * Lead Maintainer: Paul Bakker <polarssl_maintainer at polarssl.org> |
| 8 | * |
| 9 | * All rights reserved. |
| 10 | * |
| 11 | * This program is free software; you can redistribute it and/or modify |
| 12 | * it under the terms of the GNU General Public License as published by |
| 13 | * the Free Software Foundation; either version 2 of the License, or |
| 14 | * (at your option) any later version. |
| 15 | * |
| 16 | * This program is distributed in the hope that it will be useful, |
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 19 | * GNU General Public License for more details. |
| 20 | * |
| 21 | * You should have received a copy of the GNU General Public License along |
| 22 | * with this program; if not, write to the Free Software Foundation, Inc., |
| 23 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 24 | */ |
| 25 | /* |
| 26 | * These session callbacks use a simple chained list |
| 27 | * to store and retrieve the session information. |
| 28 | */ |
| 29 | |
| 30 | #include "polarssl/config.h" |
| 31 | |
| 32 | #if defined(POLARSSL_SSL_CACHE_C) |
| 33 | |
| 34 | #include "polarssl/ssl_cache.h" |
| 35 | |
Paul Bakker | 7dc4c44 | 2014-02-01 22:50:26 +0100 | [diff] [blame] | 36 | #if defined(POLARSSL_PLATFORM_C) |
| 37 | #include "polarssl/platform.h" |
Paul Bakker | 6e339b5 | 2013-07-03 13:37:05 +0200 | [diff] [blame] | 38 | #else |
| 39 | #define polarssl_malloc malloc |
| 40 | #define polarssl_free free |
| 41 | #endif |
| 42 | |
Paul Bakker | 0a59707 | 2012-09-25 21:55:46 +0000 | [diff] [blame] | 43 | #include <stdlib.h> |
| 44 | |
| 45 | void ssl_cache_init( ssl_cache_context *cache ) |
| 46 | { |
| 47 | memset( cache, 0, sizeof( ssl_cache_context ) ); |
| 48 | |
| 49 | cache->timeout = SSL_CACHE_DEFAULT_TIMEOUT; |
Paul Bakker | ba26e9e | 2012-10-23 22:18:28 +0000 | [diff] [blame] | 50 | cache->max_entries = SSL_CACHE_DEFAULT_MAX_ENTRIES; |
Paul Bakker | c559884 | 2013-09-28 15:01:27 +0200 | [diff] [blame] | 51 | |
| 52 | #if defined(POLARSSL_THREADING_C) |
| 53 | polarssl_mutex_init( &cache->mutex ); |
| 54 | #endif |
Paul Bakker | 0a59707 | 2012-09-25 21:55:46 +0000 | [diff] [blame] | 55 | } |
| 56 | |
| 57 | int ssl_cache_get( void *data, ssl_session *session ) |
| 58 | { |
Paul Bakker | c559884 | 2013-09-28 15:01:27 +0200 | [diff] [blame] | 59 | int ret = 1; |
Paul Bakker | fa9b100 | 2013-07-03 15:31:03 +0200 | [diff] [blame] | 60 | #if defined(POLARSSL_HAVE_TIME) |
Paul Bakker | 0a59707 | 2012-09-25 21:55:46 +0000 | [diff] [blame] | 61 | time_t t = time( NULL ); |
Paul Bakker | fa9b100 | 2013-07-03 15:31:03 +0200 | [diff] [blame] | 62 | #endif |
Paul Bakker | 0a59707 | 2012-09-25 21:55:46 +0000 | [diff] [blame] | 63 | ssl_cache_context *cache = (ssl_cache_context *) data; |
| 64 | ssl_cache_entry *cur, *entry; |
| 65 | |
Paul Bakker | c559884 | 2013-09-28 15:01:27 +0200 | [diff] [blame] | 66 | #if defined(POLARSSL_THREADING_C) |
| 67 | if( polarssl_mutex_lock( &cache->mutex ) != 0 ) |
| 68 | return( 1 ); |
| 69 | #endif |
| 70 | |
Paul Bakker | 0a59707 | 2012-09-25 21:55:46 +0000 | [diff] [blame] | 71 | cur = cache->chain; |
| 72 | entry = NULL; |
| 73 | |
| 74 | while( cur != NULL ) |
| 75 | { |
| 76 | entry = cur; |
| 77 | cur = cur->next; |
| 78 | |
Paul Bakker | fa9b100 | 2013-07-03 15:31:03 +0200 | [diff] [blame] | 79 | #if defined(POLARSSL_HAVE_TIME) |
Paul Bakker | 0a59707 | 2012-09-25 21:55:46 +0000 | [diff] [blame] | 80 | if( cache->timeout != 0 && |
| 81 | (int) ( t - entry->timestamp ) > cache->timeout ) |
| 82 | continue; |
Paul Bakker | fa9b100 | 2013-07-03 15:31:03 +0200 | [diff] [blame] | 83 | #endif |
Paul Bakker | 0a59707 | 2012-09-25 21:55:46 +0000 | [diff] [blame] | 84 | |
| 85 | if( session->ciphersuite != entry->session.ciphersuite || |
| 86 | session->compression != entry->session.compression || |
| 87 | session->length != entry->session.length ) |
| 88 | continue; |
| 89 | |
| 90 | if( memcmp( session->id, entry->session.id, |
| 91 | entry->session.length ) != 0 ) |
| 92 | continue; |
| 93 | |
| 94 | memcpy( session->master, entry->session.master, 48 ); |
Paul Bakker | e81beda | 2013-03-06 17:40:46 +0100 | [diff] [blame] | 95 | |
Manuel Pégourié-Gonnard | 38d1eba | 2013-08-23 10:44:29 +0200 | [diff] [blame] | 96 | session->verify_result = entry->session.verify_result; |
| 97 | |
Paul Bakker | 7c6b2c3 | 2013-09-16 13:49:26 +0200 | [diff] [blame] | 98 | #if defined(POLARSSL_X509_CRT_PARSE_C) |
Paul Bakker | e81beda | 2013-03-06 17:40:46 +0100 | [diff] [blame] | 99 | /* |
| 100 | * Restore peer certificate (without rest of the original chain) |
| 101 | */ |
| 102 | if( entry->peer_cert.p != NULL ) |
| 103 | { |
Paul Bakker | c559c7a | 2013-09-18 14:13:26 +0200 | [diff] [blame] | 104 | session->peer_cert = (x509_crt *) polarssl_malloc( sizeof(x509_crt) ); |
Paul Bakker | e81beda | 2013-03-06 17:40:46 +0100 | [diff] [blame] | 105 | if( session->peer_cert == NULL ) |
Paul Bakker | c559884 | 2013-09-28 15:01:27 +0200 | [diff] [blame] | 106 | { |
| 107 | ret = 1; |
| 108 | goto exit; |
| 109 | } |
Paul Bakker | e81beda | 2013-03-06 17:40:46 +0100 | [diff] [blame] | 110 | |
Paul Bakker | b6b0956 | 2013-09-18 14:17:41 +0200 | [diff] [blame] | 111 | x509_crt_init( session->peer_cert ); |
Paul Bakker | ddf26b4 | 2013-09-18 13:46:23 +0200 | [diff] [blame] | 112 | if( x509_crt_parse( session->peer_cert, entry->peer_cert.p, |
| 113 | entry->peer_cert.len ) != 0 ) |
Paul Bakker | e81beda | 2013-03-06 17:40:46 +0100 | [diff] [blame] | 114 | { |
Paul Bakker | 6e339b5 | 2013-07-03 13:37:05 +0200 | [diff] [blame] | 115 | polarssl_free( session->peer_cert ); |
Paul Bakker | e81beda | 2013-03-06 17:40:46 +0100 | [diff] [blame] | 116 | session->peer_cert = NULL; |
Paul Bakker | c559884 | 2013-09-28 15:01:27 +0200 | [diff] [blame] | 117 | ret = 1; |
| 118 | goto exit; |
Paul Bakker | e81beda | 2013-03-06 17:40:46 +0100 | [diff] [blame] | 119 | } |
| 120 | } |
Paul Bakker | 7c6b2c3 | 2013-09-16 13:49:26 +0200 | [diff] [blame] | 121 | #endif /* POLARSSL_X509_CRT_PARSE_C */ |
Paul Bakker | e81beda | 2013-03-06 17:40:46 +0100 | [diff] [blame] | 122 | |
Paul Bakker | c559884 | 2013-09-28 15:01:27 +0200 | [diff] [blame] | 123 | ret = 0; |
| 124 | goto exit; |
Paul Bakker | 0a59707 | 2012-09-25 21:55:46 +0000 | [diff] [blame] | 125 | } |
| 126 | |
Paul Bakker | c559884 | 2013-09-28 15:01:27 +0200 | [diff] [blame] | 127 | exit: |
| 128 | #if defined(POLARSSL_THREADING_C) |
| 129 | if( polarssl_mutex_unlock( &cache->mutex ) != 0 ) |
| 130 | ret = 1; |
| 131 | #endif |
| 132 | |
| 133 | return( ret ); |
Paul Bakker | 0a59707 | 2012-09-25 21:55:46 +0000 | [diff] [blame] | 134 | } |
| 135 | |
| 136 | int ssl_cache_set( void *data, const ssl_session *session ) |
| 137 | { |
Paul Bakker | c559884 | 2013-09-28 15:01:27 +0200 | [diff] [blame] | 138 | int ret = 1; |
Paul Bakker | fa9b100 | 2013-07-03 15:31:03 +0200 | [diff] [blame] | 139 | #if defined(POLARSSL_HAVE_TIME) |
Paul Bakker | ba26e9e | 2012-10-23 22:18:28 +0000 | [diff] [blame] | 140 | time_t t = time( NULL ), oldest = 0; |
Paul Bakker | fa9b100 | 2013-07-03 15:31:03 +0200 | [diff] [blame] | 141 | ssl_cache_entry *old = NULL; |
| 142 | #endif |
Paul Bakker | 0a59707 | 2012-09-25 21:55:46 +0000 | [diff] [blame] | 143 | ssl_cache_context *cache = (ssl_cache_context *) data; |
Paul Bakker | fa9b100 | 2013-07-03 15:31:03 +0200 | [diff] [blame] | 144 | ssl_cache_entry *cur, *prv; |
Paul Bakker | ba26e9e | 2012-10-23 22:18:28 +0000 | [diff] [blame] | 145 | int count = 0; |
Paul Bakker | 0a59707 | 2012-09-25 21:55:46 +0000 | [diff] [blame] | 146 | |
Paul Bakker | c559884 | 2013-09-28 15:01:27 +0200 | [diff] [blame] | 147 | #if defined(POLARSSL_THREADING_C) |
| 148 | if( ( ret = polarssl_mutex_lock( &cache->mutex ) ) != 0 ) |
| 149 | return( ret ); |
| 150 | #endif |
| 151 | |
Paul Bakker | 0a59707 | 2012-09-25 21:55:46 +0000 | [diff] [blame] | 152 | cur = cache->chain; |
| 153 | prv = NULL; |
| 154 | |
| 155 | while( cur != NULL ) |
| 156 | { |
Paul Bakker | ba26e9e | 2012-10-23 22:18:28 +0000 | [diff] [blame] | 157 | count++; |
| 158 | |
Paul Bakker | fa9b100 | 2013-07-03 15:31:03 +0200 | [diff] [blame] | 159 | #if defined(POLARSSL_HAVE_TIME) |
Paul Bakker | 0a59707 | 2012-09-25 21:55:46 +0000 | [diff] [blame] | 160 | if( cache->timeout != 0 && |
| 161 | (int) ( t - cur->timestamp ) > cache->timeout ) |
| 162 | { |
| 163 | cur->timestamp = t; |
| 164 | break; /* expired, reuse this slot, update timestamp */ |
| 165 | } |
Paul Bakker | fa9b100 | 2013-07-03 15:31:03 +0200 | [diff] [blame] | 166 | #endif |
Paul Bakker | 0a59707 | 2012-09-25 21:55:46 +0000 | [diff] [blame] | 167 | |
| 168 | if( memcmp( session->id, cur->session.id, cur->session.length ) == 0 ) |
| 169 | break; /* client reconnected, keep timestamp for session id */ |
| 170 | |
Paul Bakker | fa9b100 | 2013-07-03 15:31:03 +0200 | [diff] [blame] | 171 | #if defined(POLARSSL_HAVE_TIME) |
Paul Bakker | ba26e9e | 2012-10-23 22:18:28 +0000 | [diff] [blame] | 172 | if( oldest == 0 || cur->timestamp < oldest ) |
| 173 | { |
| 174 | oldest = cur->timestamp; |
| 175 | old = cur; |
| 176 | } |
Paul Bakker | fa9b100 | 2013-07-03 15:31:03 +0200 | [diff] [blame] | 177 | #endif |
Paul Bakker | ba26e9e | 2012-10-23 22:18:28 +0000 | [diff] [blame] | 178 | |
Paul Bakker | 0a59707 | 2012-09-25 21:55:46 +0000 | [diff] [blame] | 179 | prv = cur; |
| 180 | cur = cur->next; |
| 181 | } |
| 182 | |
| 183 | if( cur == NULL ) |
| 184 | { |
Paul Bakker | fa9b100 | 2013-07-03 15:31:03 +0200 | [diff] [blame] | 185 | #if defined(POLARSSL_HAVE_TIME) |
Paul Bakker | ba26e9e | 2012-10-23 22:18:28 +0000 | [diff] [blame] | 186 | /* |
| 187 | * Reuse oldest entry if max_entries reached |
| 188 | */ |
Manuel Pégourié-Gonnard | 274a12e | 2014-02-20 21:32:08 +0100 | [diff] [blame] | 189 | if( count >= cache->max_entries ) |
Paul Bakker | ba26e9e | 2012-10-23 22:18:28 +0000 | [diff] [blame] | 190 | { |
Manuel Pégourié-Gonnard | 274a12e | 2014-02-20 21:32:08 +0100 | [diff] [blame] | 191 | if( old == NULL ) |
| 192 | { |
| 193 | ret = 1; |
| 194 | goto exit; |
| 195 | } |
| 196 | |
Paul Bakker | ba26e9e | 2012-10-23 22:18:28 +0000 | [diff] [blame] | 197 | cur = old; |
Paul Bakker | ba26e9e | 2012-10-23 22:18:28 +0000 | [diff] [blame] | 198 | } |
Paul Bakker | fa9b100 | 2013-07-03 15:31:03 +0200 | [diff] [blame] | 199 | #else /* POLARSSL_HAVE_TIME */ |
| 200 | /* |
| 201 | * Reuse first entry in chain if max_entries reached, |
| 202 | * but move to last place |
| 203 | */ |
| 204 | if( count >= cache->max_entries ) |
| 205 | { |
| 206 | if( cache->chain == NULL ) |
Paul Bakker | c559884 | 2013-09-28 15:01:27 +0200 | [diff] [blame] | 207 | { |
| 208 | ret = 1; |
| 209 | goto exit; |
| 210 | } |
Paul Bakker | fa9b100 | 2013-07-03 15:31:03 +0200 | [diff] [blame] | 211 | |
| 212 | cur = cache->chain; |
| 213 | cache->chain = cur->next; |
Manuel Pégourié-Gonnard | 84c30c7 | 2014-02-26 17:38:55 +0100 | [diff] [blame] | 214 | cur->next = NULL; |
Paul Bakker | fa9b100 | 2013-07-03 15:31:03 +0200 | [diff] [blame] | 215 | prv->next = cur; |
| 216 | } |
| 217 | #endif /* POLARSSL_HAVE_TIME */ |
Paul Bakker | 0a59707 | 2012-09-25 21:55:46 +0000 | [diff] [blame] | 218 | else |
Paul Bakker | ba26e9e | 2012-10-23 22:18:28 +0000 | [diff] [blame] | 219 | { |
Manuel Pégourié-Gonnard | 274a12e | 2014-02-20 21:32:08 +0100 | [diff] [blame] | 220 | /* |
| 221 | * max_entries not reached, create new entry |
| 222 | */ |
Paul Bakker | 6e339b5 | 2013-07-03 13:37:05 +0200 | [diff] [blame] | 223 | cur = (ssl_cache_entry *) polarssl_malloc( sizeof(ssl_cache_entry) ); |
Paul Bakker | ba26e9e | 2012-10-23 22:18:28 +0000 | [diff] [blame] | 224 | if( cur == NULL ) |
Paul Bakker | c559884 | 2013-09-28 15:01:27 +0200 | [diff] [blame] | 225 | { |
| 226 | ret = 1; |
| 227 | goto exit; |
| 228 | } |
Paul Bakker | ba26e9e | 2012-10-23 22:18:28 +0000 | [diff] [blame] | 229 | |
Paul Bakker | e81beda | 2013-03-06 17:40:46 +0100 | [diff] [blame] | 230 | memset( cur, 0, sizeof(ssl_cache_entry) ); |
Paul Bakker | ba26e9e | 2012-10-23 22:18:28 +0000 | [diff] [blame] | 231 | |
| 232 | if( prv == NULL ) |
| 233 | cache->chain = cur; |
| 234 | else |
| 235 | prv->next = cur; |
| 236 | } |
Paul Bakker | 0a59707 | 2012-09-25 21:55:46 +0000 | [diff] [blame] | 237 | |
Paul Bakker | fa9b100 | 2013-07-03 15:31:03 +0200 | [diff] [blame] | 238 | #if defined(POLARSSL_HAVE_TIME) |
Paul Bakker | 0a59707 | 2012-09-25 21:55:46 +0000 | [diff] [blame] | 239 | cur->timestamp = t; |
Paul Bakker | fa9b100 | 2013-07-03 15:31:03 +0200 | [diff] [blame] | 240 | #endif |
Paul Bakker | 0a59707 | 2012-09-25 21:55:46 +0000 | [diff] [blame] | 241 | } |
| 242 | |
| 243 | memcpy( &cur->session, session, sizeof( ssl_session ) ); |
Paul Bakker | ed27a04 | 2013-04-18 22:46:23 +0200 | [diff] [blame] | 244 | |
Paul Bakker | 7c6b2c3 | 2013-09-16 13:49:26 +0200 | [diff] [blame] | 245 | #if defined(POLARSSL_X509_CRT_PARSE_C) |
Paul Bakker | e81beda | 2013-03-06 17:40:46 +0100 | [diff] [blame] | 246 | /* |
Manuel Pégourié-Gonnard | 84c30c7 | 2014-02-26 17:38:55 +0100 | [diff] [blame] | 247 | * If we're reusing an entry, free its certificate first |
| 248 | */ |
| 249 | if( cur->peer_cert.p != NULL ) |
| 250 | { |
| 251 | polarssl_free( cur->peer_cert.p ); |
| 252 | memset( &cur->peer_cert, 0, sizeof(x509_buf) ); |
| 253 | } |
| 254 | |
| 255 | /* |
Paul Bakker | e81beda | 2013-03-06 17:40:46 +0100 | [diff] [blame] | 256 | * Store peer certificate |
| 257 | */ |
| 258 | if( session->peer_cert != NULL ) |
| 259 | { |
Paul Bakker | 6e339b5 | 2013-07-03 13:37:05 +0200 | [diff] [blame] | 260 | cur->peer_cert.p = (unsigned char *) polarssl_malloc( session->peer_cert->raw.len ); |
Paul Bakker | e81beda | 2013-03-06 17:40:46 +0100 | [diff] [blame] | 261 | if( cur->peer_cert.p == NULL ) |
Paul Bakker | c559884 | 2013-09-28 15:01:27 +0200 | [diff] [blame] | 262 | { |
| 263 | ret = 1; |
| 264 | goto exit; |
| 265 | } |
Paul Bakker | e81beda | 2013-03-06 17:40:46 +0100 | [diff] [blame] | 266 | |
| 267 | memcpy( cur->peer_cert.p, session->peer_cert->raw.p, |
| 268 | session->peer_cert->raw.len ); |
| 269 | cur->peer_cert.len = session->peer_cert->raw.len; |
| 270 | |
| 271 | cur->session.peer_cert = NULL; |
| 272 | } |
Paul Bakker | 7c6b2c3 | 2013-09-16 13:49:26 +0200 | [diff] [blame] | 273 | #endif /* POLARSSL_X509_CRT_PARSE_C */ |
Paul Bakker | 0a59707 | 2012-09-25 21:55:46 +0000 | [diff] [blame] | 274 | |
Paul Bakker | c559884 | 2013-09-28 15:01:27 +0200 | [diff] [blame] | 275 | ret = 0; |
| 276 | |
| 277 | exit: |
| 278 | #if defined(POLARSSL_THREADING_C) |
| 279 | if( polarssl_mutex_unlock( &cache->mutex ) != 0 ) |
| 280 | ret = 1; |
| 281 | #endif |
| 282 | |
| 283 | return( ret ); |
Paul Bakker | 0a59707 | 2012-09-25 21:55:46 +0000 | [diff] [blame] | 284 | } |
| 285 | |
Paul Bakker | fa9b100 | 2013-07-03 15:31:03 +0200 | [diff] [blame] | 286 | #if defined(POLARSSL_HAVE_TIME) |
Paul Bakker | 0a59707 | 2012-09-25 21:55:46 +0000 | [diff] [blame] | 287 | void ssl_cache_set_timeout( ssl_cache_context *cache, int timeout ) |
| 288 | { |
| 289 | if( timeout < 0 ) timeout = 0; |
| 290 | |
| 291 | cache->timeout = timeout; |
| 292 | } |
Paul Bakker | fa9b100 | 2013-07-03 15:31:03 +0200 | [diff] [blame] | 293 | #endif /* POLARSSL_HAVE_TIME */ |
Paul Bakker | 0a59707 | 2012-09-25 21:55:46 +0000 | [diff] [blame] | 294 | |
Paul Bakker | ba26e9e | 2012-10-23 22:18:28 +0000 | [diff] [blame] | 295 | void ssl_cache_set_max_entries( ssl_cache_context *cache, int max ) |
| 296 | { |
| 297 | if( max < 0 ) max = 0; |
| 298 | |
| 299 | cache->max_entries = max; |
| 300 | } |
| 301 | |
Paul Bakker | 0a59707 | 2012-09-25 21:55:46 +0000 | [diff] [blame] | 302 | void ssl_cache_free( ssl_cache_context *cache ) |
| 303 | { |
| 304 | ssl_cache_entry *cur, *prv; |
| 305 | |
| 306 | cur = cache->chain; |
| 307 | |
| 308 | while( cur != NULL ) |
| 309 | { |
| 310 | prv = cur; |
| 311 | cur = cur->next; |
| 312 | |
| 313 | ssl_session_free( &prv->session ); |
Paul Bakker | e81beda | 2013-03-06 17:40:46 +0100 | [diff] [blame] | 314 | |
Paul Bakker | 7c6b2c3 | 2013-09-16 13:49:26 +0200 | [diff] [blame] | 315 | #if defined(POLARSSL_X509_CRT_PARSE_C) |
Paul Bakker | e81beda | 2013-03-06 17:40:46 +0100 | [diff] [blame] | 316 | if( prv->peer_cert.p != NULL ) |
Paul Bakker | 6e339b5 | 2013-07-03 13:37:05 +0200 | [diff] [blame] | 317 | polarssl_free( prv->peer_cert.p ); |
Paul Bakker | 7c6b2c3 | 2013-09-16 13:49:26 +0200 | [diff] [blame] | 318 | #endif /* POLARSSL_X509_CRT_PARSE_C */ |
Paul Bakker | e81beda | 2013-03-06 17:40:46 +0100 | [diff] [blame] | 319 | |
Paul Bakker | 6e339b5 | 2013-07-03 13:37:05 +0200 | [diff] [blame] | 320 | polarssl_free( prv ); |
Paul Bakker | 0a59707 | 2012-09-25 21:55:46 +0000 | [diff] [blame] | 321 | } |
Paul Bakker | c559884 | 2013-09-28 15:01:27 +0200 | [diff] [blame] | 322 | |
| 323 | #if defined(POLARSSL_THREADING_C) |
| 324 | polarssl_mutex_free( &cache->mutex ); |
| 325 | #endif |
Paul Bakker | 0a59707 | 2012-09-25 21:55:46 +0000 | [diff] [blame] | 326 | } |
| 327 | |
| 328 | #endif /* POLARSSL_SSL_CACHE_C */ |