regress_ssl.c (302408) | regress_ssl.c (275970) |
---|---|
1/* 2 * Copyright (c) 2009-2012 Niels Provos and Nick Mathewson 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 180 unchanged lines hidden (view full) --- 189 char *line; 190 int n; 191 line = evbuffer_readln(b, NULL, EVBUFFER_EOL_LF); 192 if (! line) 193 return; 194 n = atoi(line); 195 if (n <= 0) 196 TT_FAIL(("Bad number: %s", line)); | 1/* 2 * Copyright (c) 2009-2012 Niels Provos and Nick Mathewson 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 180 unchanged lines hidden (view full) --- 189 char *line; 190 int n; 191 line = evbuffer_readln(b, NULL, EVBUFFER_EOL_LF); 192 if (! line) 193 return; 194 n = atoi(line); 195 if (n <= 0) 196 TT_FAIL(("Bad number: %s", line)); |
197 free(line); | |
198 TT_BLATHER(("The number was %d", n)); 199 if (n == 1001) { 200 ++test_is_done; 201 bufferevent_free(bev); /* Should trigger close on other side. */ 202 return; 203 } 204 if (!strcmp(ctx, "client") && n == renegotiate_at) { 205 SSL_renegotiate(bufferevent_openssl_get_ssl(bev)); --- 273 unchanged lines hidden --- | 197 TT_BLATHER(("The number was %d", n)); 198 if (n == 1001) { 199 ++test_is_done; 200 bufferevent_free(bev); /* Should trigger close on other side. */ 201 return; 202 } 203 if (!strcmp(ctx, "client") && n == renegotiate_at) { 204 SSL_renegotiate(bufferevent_openssl_get_ssl(bev)); --- 273 unchanged lines hidden --- |