Lines Matching full:session
78 { "-session-in", kOptionalArgument,
79 "A file containing a session to resume.",
81 { "-session-out", kOptionalArgument,
82 "A file to write the negotiated session to.",
267 if (args_map.count("-session-in") != 0) {
268 ScopedBIO in(BIO_new_file(args_map["-session-in"].c_str(), "rb"));
270 fprintf(stderr, "Error reading session\n");
274 ScopedSSL_SESSION session(PEM_read_bio_SSL_SESSION(in.get(), nullptr,
276 if (!session) {
277 fprintf(stderr, "Error reading session\n");
281 SSL_set_session(ssl.get(), session.get());
298 if (args_map.count("-session-out") != 0) {
299 ScopedBIO out(BIO_new_file(args_map["-session-out"].c_str(), "wb"));
302 fprintf(stderr, "Error while saving session:\n");