static int add_session(SSL *ssl, SSL_SESSION *session)
	{
	simple_ssl_session *sess;
	unsigned char *p;
	sess = OPENSSL_malloc(sizeof(simple_ssl_session));
	sess->idlen = SSL_SESSION_get_id_len(session);
	sess->derlen = i2d_SSL_SESSION(session, NULL);
	sess->id = BUF_memdup(SSL_SESSION_get0_id(session), sess->idlen);
	sess->der = OPENSSL_malloc(sess->derlen);
	p = sess->der;
	i2d_SSL_SESSION(session, &p);
	sess->next = first;
	first = sess;
	BIO_printf(bio_err, "New session added to external cache\n");
	return 0;
	}
['static int add_session(SSL *ssl, SSL_SESSION *session)\n\t{\n\tsimple_ssl_session *sess;\n\tunsigned char *p;\n\tsess = OPENSSL_malloc(sizeof(simple_ssl_session));\n\tsess->idlen = SSL_SESSION_get_id_len(session);\n\tsess->derlen = i2d_SSL_SESSION(session, NULL);\n\tsess->id = BUF_memdup(SSL_SESSION_get0_id(session), sess->idlen);\n\tsess->der = OPENSSL_malloc(sess->derlen);\n\tp = sess->der;\n\ti2d_SSL_SESSION(session, &p);\n\tsess->next = first;\n\tfirst = sess;\n\tBIO_printf(bio_err, "New session added to external cache\\n");\n\treturn 0;\n\t}', 'void *CRYPTO_malloc(int num, const char *file, int line)\n\t{\n\tvoid *ret = NULL;\n\tif (num <= 0) return NULL;\n\tallow_customize = 0;\n\tif (malloc_debug_func != NULL)\n\t\t{\n\t\tallow_customize_debug = 0;\n\t\tmalloc_debug_func(NULL, num, file, line, 0);\n\t\t}\n\tret = malloc_ex_func(num,file,line);\n#ifdef LEVITTE_DEBUG_MEM\n\tfprintf(stderr, "LEVITTE_DEBUG_MEM:         > 0x%p (%d)\\n", ret, num);\n#endif\n\tif (malloc_debug_func != NULL)\n\t\tmalloc_debug_func(ret, num, file, line, 1);\n#ifndef OPENSSL_CPUID_OBJ\n        if(ret && (num > 2048))\n\t{\textern unsigned char cleanse_ctr;\n                ((unsigned char *)ret)[0] = cleanse_ctr;\n\t}\n#endif\n\treturn ret;\n\t}', 'unsigned int SSL_SESSION_get_id_len(SSL_SESSION *s)\n\t{\n\treturn s->session_id_length;\n\t}']