projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use 32bit longs on Alpha as well, because that's what the VMS
[openssl.git]
/
apps
/
sess_id.c
diff --git
a/apps/sess_id.c
b/apps/sess_id.c
index 3d363d13ebcffdba55a36691465195d557db5ae9..7f5c55b90180816fb64d3d959b1eac1dc65b0cbf 100644
(file)
--- a/
apps/sess_id.c
+++ b/
apps/sess_id.c
@@
-84,6
+84,9
@@
NULL
};
static SSL_SESSION *load_sess_id(char *file, int format);
};
static SSL_SESSION *load_sess_id(char *file, int format);
+
+int MAIN(int, char **);
+
int MAIN(int argc, char **argv)
{
SSL_SESSION *x=NULL;
int MAIN(int argc, char **argv)
{
SSL_SESSION *x=NULL;
@@
-153,7
+156,7
@@
int MAIN(int argc, char **argv)
{
bad:
for (pp=sess_id_usage; (*pp != NULL); pp++)
{
bad:
for (pp=sess_id_usage; (*pp != NULL); pp++)
- BIO_printf(bio_err,*pp);
+ BIO_printf(bio_err,
"%s",
*pp);
goto end;
}
goto end;
}
@@
-203,7
+206,15
@@
bad:
}
if (outfile == NULL)
}
if (outfile == NULL)
+ {
BIO_set_fp(out,stdout,BIO_NOCLOSE);
BIO_set_fp(out,stdout,BIO_NOCLOSE);
+#ifdef OPENSSL_SYS_VMS
+ {
+ BIO *tmpbio = BIO_new(BIO_f_linebuffer());
+ out = BIO_push(tmpbio, out);
+ }
+#endif
+ }
else
{
if (BIO_write_filename(out,outfile) <= 0)
else
{
if (BIO_write_filename(out,outfile) <= 0)
@@
-259,7
+270,7
@@
bad:
}
ret=0;
end:
}
ret=0;
end:
- if (out != NULL) BIO_free(out);
+ if (out != NULL) BIO_free
_all
(out);
if (x != NULL) SSL_SESSION_free(x);
EXIT(ret);
}
if (x != NULL) SSL_SESSION_free(x);
EXIT(ret);
}