Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
btwise
openssl
提交
c45a48c1
O
openssl
项目概览
btwise
/
openssl
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
openssl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
c45a48c1
编写于
10月 07, 2013
作者:
B
Ben Laurie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Constification.
上级
6f6a6130
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
28 addition
and
25 deletion
+28
-25
apps/apps.h
apps/apps.h
+4
-3
apps/ocsp.c
apps/ocsp.c
+15
-13
crypto/bio/bio.h
crypto/bio/bio.h
+2
-2
crypto/bio/bss_acpt.c
crypto/bio/bss_acpt.c
+1
-1
crypto/bio/bss_conn.c
crypto/bio/bss_conn.c
+1
-1
crypto/ocsp/ocsp.h
crypto/ocsp/ocsp.h
+2
-2
crypto/ocsp/ocsp_ht.c
crypto/ocsp/ocsp_ht.c
+3
-3
未找到文件。
apps/apps.h
浏览文件 @
c45a48c1
...
...
@@ -265,9 +265,10 @@ ENGINE *setup_engine(BIO *err, const char *engine, int debug);
#ifndef OPENSSL_NO_OCSP
OCSP_RESPONSE
*
process_responder
(
BIO
*
err
,
OCSP_REQUEST
*
req
,
char
*
host
,
char
*
path
,
char
*
port
,
int
use_ssl
,
STACK_OF
(
CONF_VALUE
)
*
headers
,
int
req_timeout
);
const
char
*
host
,
const
char
*
path
,
const
char
*
port
,
int
use_ssl
,
const
STACK_OF
(
CONF_VALUE
)
*
headers
,
int
req_timeout
);
#endif
int
load_config
(
BIO
*
err
,
CONF
*
cnf
);
...
...
apps/ocsp.c
浏览文件 @
c45a48c1
...
...
@@ -110,12 +110,12 @@ static int make_ocsp_response(OCSP_RESPONSE **resp, OCSP_REQUEST *req, CA_DB *db
int
nmin
,
int
ndays
,
int
badsig
);
static
char
**
lookup_serial
(
CA_DB
*
db
,
ASN1_INTEGER
*
ser
);
static
BIO
*
init_responder
(
char
*
port
);
static
int
do_responder
(
OCSP_REQUEST
**
preq
,
BIO
**
pcbio
,
BIO
*
acbio
,
char
*
port
);
static
BIO
*
init_responder
(
c
onst
c
har
*
port
);
static
int
do_responder
(
OCSP_REQUEST
**
preq
,
BIO
**
pcbio
,
BIO
*
acbio
,
c
onst
c
har
*
port
);
static
int
send_ocsp_response
(
BIO
*
cbio
,
OCSP_RESPONSE
*
resp
);
static
OCSP_RESPONSE
*
query_responder
(
BIO
*
err
,
BIO
*
cbio
,
char
*
path
,
STACK_OF
(
CONF_VALUE
)
*
headers
,
OCSP_REQUEST
*
req
,
int
req_timeout
);
static
OCSP_RESPONSE
*
query_responder
(
BIO
*
err
,
BIO
*
cbio
,
c
onst
c
har
*
path
,
const
STACK_OF
(
CONF_VALUE
)
*
headers
,
OCSP_REQUEST
*
req
,
int
req_timeout
);
#undef PROG
#define PROG ocsp_main
...
...
@@ -1223,7 +1223,7 @@ static char **lookup_serial(CA_DB *db, ASN1_INTEGER *ser)
/* Quick and dirty OCSP server: read in and parse input request */
static
BIO
*
init_responder
(
char
*
port
)
static
BIO
*
init_responder
(
c
onst
c
har
*
port
)
{
BIO
*
acbio
=
NULL
,
*
bufbio
=
NULL
;
bufbio
=
BIO_new
(
BIO_f_buffer
());
...
...
@@ -1254,7 +1254,8 @@ static BIO *init_responder(char *port)
return
NULL
;
}
static
int
do_responder
(
OCSP_REQUEST
**
preq
,
BIO
**
pcbio
,
BIO
*
acbio
,
char
*
port
)
static
int
do_responder
(
OCSP_REQUEST
**
preq
,
BIO
**
pcbio
,
BIO
*
acbio
,
const
char
*
port
)
{
int
have_post
=
0
,
len
;
OCSP_REQUEST
*
req
=
NULL
;
...
...
@@ -1320,9 +1321,9 @@ static int send_ocsp_response(BIO *cbio, OCSP_RESPONSE *resp)
return
1
;
}
static
OCSP_RESPONSE
*
query_responder
(
BIO
*
err
,
BIO
*
cbio
,
char
*
path
,
STACK_OF
(
CONF_VALUE
)
*
headers
,
OCSP_REQUEST
*
req
,
int
req_timeout
)
static
OCSP_RESPONSE
*
query_responder
(
BIO
*
err
,
BIO
*
cbio
,
c
onst
c
har
*
path
,
const
STACK_OF
(
CONF_VALUE
)
*
headers
,
OCSP_REQUEST
*
req
,
int
req_timeout
)
{
int
fd
;
int
rv
;
...
...
@@ -1418,9 +1419,10 @@ static OCSP_RESPONSE *query_responder(BIO *err, BIO *cbio, char *path,
}
OCSP_RESPONSE
*
process_responder
(
BIO
*
err
,
OCSP_REQUEST
*
req
,
char
*
host
,
char
*
path
,
char
*
port
,
int
use_ssl
,
STACK_OF
(
CONF_VALUE
)
*
headers
,
int
req_timeout
)
const
char
*
host
,
const
char
*
path
,
const
char
*
port
,
int
use_ssl
,
const
STACK_OF
(
CONF_VALUE
)
*
headers
,
int
req_timeout
)
{
BIO
*
cbio
=
NULL
;
SSL_CTX
*
ctx
=
NULL
;
...
...
crypto/bio/bio.h
浏览文件 @
c45a48c1
...
...
@@ -739,8 +739,8 @@ int BIO_dgram_sctp_wait_for_dry(BIO *b);
int
BIO_dgram_sctp_msg_waiting
(
BIO
*
b
);
#endif
BIO
*
BIO_new_fd
(
int
fd
,
int
close_flag
);
BIO
*
BIO_new_connect
(
char
*
host_port
);
BIO
*
BIO_new_accept
(
char
*
host_port
);
BIO
*
BIO_new_connect
(
c
onst
c
har
*
host_port
);
BIO
*
BIO_new_accept
(
c
onst
c
har
*
host_port
);
int
BIO_new_bio_pair
(
BIO
**
bio1
,
size_t
writebuf1
,
BIO
**
bio2
,
size_t
writebuf2
);
...
...
crypto/bio/bss_acpt.c
浏览文件 @
c45a48c1
...
...
@@ -460,7 +460,7 @@ static int acpt_puts(BIO *bp, const char *str)
return
(
ret
);
}
BIO
*
BIO_new_accept
(
char
*
str
)
BIO
*
BIO_new_accept
(
c
onst
c
har
*
str
)
{
BIO
*
ret
;
...
...
crypto/bio/bss_conn.c
浏览文件 @
c45a48c1
...
...
@@ -633,7 +633,7 @@ static int conn_puts(BIO *bp, const char *str)
return
(
ret
);
}
BIO
*
BIO_new_connect
(
char
*
str
)
BIO
*
BIO_new_connect
(
c
onst
c
har
*
str
)
{
BIO
*
ret
;
...
...
crypto/ocsp/ocsp.h
浏览文件 @
c45a48c1
...
...
@@ -401,8 +401,8 @@ typedef struct ocsp_service_locator_st
OCSP_CERTID
*
OCSP_CERTID_dup
(
OCSP_CERTID
*
id
);
OCSP_RESPONSE
*
OCSP_sendreq_bio
(
BIO
*
b
,
char
*
path
,
OCSP_REQUEST
*
req
);
OCSP_REQ_CTX
*
OCSP_sendreq_new
(
BIO
*
io
,
char
*
path
,
OCSP_REQUEST
*
req
,
OCSP_RESPONSE
*
OCSP_sendreq_bio
(
BIO
*
b
,
c
onst
c
har
*
path
,
OCSP_REQUEST
*
req
);
OCSP_REQ_CTX
*
OCSP_sendreq_new
(
BIO
*
io
,
c
onst
c
har
*
path
,
OCSP_REQUEST
*
req
,
int
maxline
);
int
OCSP_REQ_CTX_nbio
(
OCSP_REQ_CTX
*
rctx
);
int
OCSP_sendreq_nbio
(
OCSP_RESPONSE
**
presp
,
OCSP_REQ_CTX
*
rctx
);
...
...
crypto/ocsp/ocsp_ht.c
浏览文件 @
c45a48c1
...
...
@@ -233,8 +233,8 @@ int OCSP_REQ_CTX_add1_header(OCSP_REQ_CTX *rctx,
return
1
;
}
OCSP_REQ_CTX
*
OCSP_sendreq_new
(
BIO
*
io
,
char
*
path
,
OCSP_REQUEST
*
req
,
int
maxline
)
OCSP_REQ_CTX
*
OCSP_sendreq_new
(
BIO
*
io
,
c
onst
c
har
*
path
,
OCSP_REQUEST
*
req
,
int
maxline
)
{
OCSP_REQ_CTX
*
rctx
=
NULL
;
...
...
@@ -563,7 +563,7 @@ int OCSP_sendreq_nbio(OCSP_RESPONSE **presp, OCSP_REQ_CTX *rctx)
/* Blocking OCSP request handler: now a special case of non-blocking I/O */
OCSP_RESPONSE
*
OCSP_sendreq_bio
(
BIO
*
b
,
char
*
path
,
OCSP_REQUEST
*
req
)
OCSP_RESPONSE
*
OCSP_sendreq_bio
(
BIO
*
b
,
c
onst
c
har
*
path
,
OCSP_REQUEST
*
req
)
{
OCSP_RESPONSE
*
resp
=
NULL
;
OCSP_REQ_CTX
*
ctx
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录