xref: /openbsd/lib/libssl/man/Makefile (revision 5af055cd)
1# $OpenBSD: Makefile,v 1.32 2015/11/10 16:20:31 jmc Exp $
2
3.include <bsd.own.mk>		# for NOMAN
4
5POD2MAN=pod2man --official --release="OpenBSD ${OSREV}" --center=OpenSSL
6
7.ifndef NOMAN
8MAN=	\
9	BIO_f_ssl.3 \
10	SSL_CIPHER_get_name.3 \
11	SSL_COMP_add_compression_method.3 \
12	SSL_CTX_add_extra_chain_cert.3 \
13	SSL_CTX_add_session.3 \
14	SSL_CTX_ctrl.3 \
15	SSL_CTX_flush_sessions.3 \
16	SSL_CTX_free.3 \
17	SSL_CTX_get_ex_new_index.3 \
18	SSL_CTX_get_verify_mode.3 \
19	SSL_CTX_load_verify_locations.3 \
20	SSL_CTX_new.3 \
21	SSL_CTX_sess_number.3 \
22	SSL_CTX_sess_set_cache_size.3 \
23	SSL_CTX_sess_set_get_cb.3 \
24	SSL_CTX_sessions.3 \
25	SSL_CTX_set_cert_store.3 \
26	SSL_CTX_set_cert_verify_callback.3 \
27	SSL_CTX_set_cipher_list.3 \
28	SSL_CTX_set_client_CA_list.3 \
29	SSL_CTX_set_client_cert_cb.3 \
30	SSL_CTX_set_default_passwd_cb.3 \
31	SSL_CTX_set_generate_session_id.3 \
32	SSL_CTX_set_info_callback.3 \
33	SSL_CTX_set_max_cert_list.3 \
34	SSL_CTX_set_mode.3 \
35	SSL_CTX_set_msg_callback.3 \
36	SSL_CTX_set_options.3 \
37	SSL_CTX_set_psk_client_callback.3 \
38	SSL_CTX_set_quiet_shutdown.3 \
39	SSL_CTX_set_session_cache_mode.3 \
40	SSL_CTX_set_session_id_context.3 \
41	SSL_CTX_set_ssl_version.3 \
42	SSL_CTX_set_timeout.3 \
43	SSL_CTX_set_tmp_dh_callback.3 \
44	SSL_CTX_set_tmp_rsa_callback.3 \
45	SSL_CTX_set_verify.3 \
46	SSL_CTX_use_certificate.3 \
47	SSL_CTX_use_psk_identity_hint.3 \
48	SSL_SESSION_free.3 \
49	SSL_SESSION_get_ex_new_index.3 \
50	SSL_SESSION_get_time.3 \
51	SSL_accept.3 \
52	SSL_alert_type_string.3 \
53	SSL_clear.3 \
54	SSL_connect.3 \
55	SSL_do_handshake.3 \
56	SSL_free.3 \
57	SSL_get_SSL_CTX.3 \
58	SSL_get_ciphers.3 \
59	SSL_get_client_CA_list.3 \
60	SSL_get_current_cipher.3 \
61	SSL_get_default_timeout.3 \
62	SSL_get_error.3 \
63	SSL_get_ex_data_X509_STORE_CTX_idx.3 \
64	SSL_get_ex_new_index.3 \
65	SSL_get_fd.3 \
66	SSL_get_peer_cert_chain.3 \
67	SSL_get_peer_certificate.3 \
68	SSL_get_psk_identity.3 \
69	SSL_get_rbio.3 \
70	SSL_get_session.3 \
71	SSL_get_verify_result.3 \
72	SSL_get_version.3 \
73	SSL_library_init.3 \
74	SSL_load_client_CA_file.3 \
75	SSL_new.3 \
76	SSL_pending.3 \
77	SSL_read.3 \
78	SSL_rstate_string.3 \
79	SSL_session_reused.3 \
80	SSL_set_bio.3 \
81	SSL_set_connect_state.3 \
82	SSL_set_fd.3 \
83	SSL_set_session.3 \
84	SSL_set_shutdown.3 \
85	SSL_set_verify_result.3 \
86	SSL_shutdown.3 \
87	SSL_state_string.3 \
88	SSL_want.3 \
89	SSL_write.3 \
90	d2i_SSL_SESSION.3 \
91	ssl.3 \
92
93# XXX ERR_load_crypto_strings.3 built by libcrypto
94# XXX PLEASE LEAVE THESE AS TWO PER LINE. DO NOT WRAP.
95# XXX SCRIPTS IN PORTABLE DEPEND ON THIS.
96MLINKS+=\
97	BIO_f_ssl.3 BIO_do_handshake.3 \
98	BIO_f_ssl.3 BIO_get_num_renegotiates.3 \
99	BIO_f_ssl.3 BIO_get_ssl.3 \
100	BIO_f_ssl.3 BIO_new_buffer_ssl_connect.3 \
101	BIO_f_ssl.3 BIO_new_ssl.3 \
102	BIO_f_ssl.3 BIO_new_ssl_connect.3 \
103	BIO_f_ssl.3 BIO_set_ssl.3 \
104	BIO_f_ssl.3 BIO_set_ssl_mode.3 \
105	BIO_f_ssl.3 BIO_set_ssl_renegotiate_bytes.3 \
106	BIO_f_ssl.3 BIO_set_ssl_renegotiate_timeout.3 \
107	BIO_f_ssl.3 BIO_ssl_copy_session_id.3 \
108	BIO_f_ssl.3 BIO_ssl_shutdown.3 \
109	ERR_load_crypto_strings.3 SSL_load_error_strings.3 \
110	SSL_CIPHER_get_name.3 SSL_CIPHER_description.3 \
111	SSL_CIPHER_get_name.3 SSL_CIPHER_get_bits.3 \
112	SSL_CIPHER_get_name.3 SSL_CIPHER_get_version.3 \
113	SSL_CTX_add_session.3 SSL_CTX_remove_session.3 \
114	SSL_CTX_add_session.3 SSL_add_session.3 \
115	SSL_CTX_add_session.3 SSL_remove_session.3 \
116	SSL_CTX_ctrl.3 SSL_CTX_callback_ctrl.3 \
117	SSL_CTX_ctrl.3 SSL_callback_ctrl.3 \
118	SSL_CTX_ctrl.3 SSL_ctrl.3 \
119	SSL_CTX_flush_sessions.3 SSL_flush_sessions.3 \
120	SSL_CTX_get_ex_new_index.3 SSL_CTX_get_ex_data.3 \
121	SSL_CTX_get_ex_new_index.3 SSL_CTX_set_ex_data.3 \
122	SSL_CTX_get_verify_mode.3 SSL_CTX_get_verify_callback.3 \
123	SSL_CTX_get_verify_mode.3 SSL_CTX_get_verify_depth.3 \
124	SSL_CTX_get_verify_mode.3 SSL_get_verify_callback.3 \
125	SSL_CTX_get_verify_mode.3 SSL_get_verify_depth.3 \
126	SSL_CTX_get_verify_mode.3 SSL_get_verify_mode.3 \
127	SSL_CTX_new.3 SSLv23_client_method.3 \
128	SSL_CTX_new.3 SSLv23_method.3 \
129	SSL_CTX_new.3 SSLv23_server_method.3 \
130	SSL_CTX_new.3 SSLv3_client_method.3 \
131	SSL_CTX_new.3 SSLv3_method.3 \
132	SSL_CTX_new.3 SSLv3_server_method.3 \
133	SSL_CTX_new.3 TLSv1_1_client_method.3 \
134	SSL_CTX_new.3 TLSv1_1_method.3 \
135	SSL_CTX_new.3 TLSv1_1_server_method.3 \
136	SSL_CTX_new.3 TLSv1_client_method.3 \
137	SSL_CTX_new.3 TLSv1_method.3 \
138	SSL_CTX_new.3 TLSv1_server_method.3 \
139	SSL_CTX_sess_number.3 SSL_CTX_sess_accept.3 \
140	SSL_CTX_sess_number.3 SSL_CTX_sess_accept_good.3 \
141	SSL_CTX_sess_number.3 SSL_CTX_sess_accept_renegotiate.3 \
142	SSL_CTX_sess_number.3 SSL_CTX_sess_cache_full.3 \
143	SSL_CTX_sess_number.3 SSL_CTX_sess_cb_hits.3 \
144	SSL_CTX_sess_number.3 SSL_CTX_sess_connect.3 \
145	SSL_CTX_sess_number.3 SSL_CTX_sess_connect_good.3 \
146	SSL_CTX_sess_number.3 SSL_CTX_sess_connect_renegotiate.3 \
147	SSL_CTX_sess_number.3 SSL_CTX_sess_hits.3 \
148	SSL_CTX_sess_number.3 SSL_CTX_sess_misses.3 \
149	SSL_CTX_sess_number.3 SSL_CTX_sess_timeouts.3 \
150	SSL_CTX_sess_set_cache_size.3 SSL_CTX_sess_get_cache_size.3 \
151	SSL_CTX_sess_set_get_cb.3 SSL_CTX_sess_get_get_cb.3 \
152	SSL_CTX_sess_set_get_cb.3 SSL_CTX_sess_get_new_cb.3 \
153	SSL_CTX_sess_set_get_cb.3 SSL_CTX_sess_get_remove_cb.3 \
154	SSL_CTX_sess_set_get_cb.3 SSL_CTX_sess_set_new_cb.3 \
155	SSL_CTX_sess_set_get_cb.3 SSL_CTX_sess_set_remove_cb.3 \
156	SSL_CTX_set_cert_store.3 SSL_CTX_get_cert_store.3 \
157	SSL_CTX_set_cipher_list.3 SSL_set_cipher_list.3 \
158	SSL_CTX_set_client_CA_list.3 SSL_CTX_add_client_CA.3 \
159	SSL_CTX_set_client_CA_list.3 SSL_add_client_CA.3 \
160	SSL_CTX_set_client_CA_list.3 SSL_set_client_CA_list.3 \
161	SSL_CTX_set_default_passwd_cb.3 SSL_CTX_set_default_passwd_cb_userdata.3 \
162	SSL_CTX_set_max_cert_list.3 SSL_CTX_get_max_cert_list.3 \
163	SSL_CTX_set_max_cert_list.3 SSL_get_max_cert_list.3 \
164	SSL_CTX_set_max_cert_list.3 SSL_set_max_cert_list.3 \
165	SSL_CTX_set_mode.3 SSL_CTX_get_mode.3 \
166	SSL_CTX_set_mode.3 SSL_get_mode.3 \
167	SSL_CTX_set_mode.3 SSL_set_mode.3 \
168	SSL_CTX_set_msg_callback.3 SSL_CTX_set_msg_callback_arg.3 \
169	SSL_CTX_set_msg_callback.3 SSL_set_msg_callback.3 \
170	SSL_CTX_set_msg_callback.3 SSL_set_msg_callback_arg.3 \
171	SSL_CTX_set_options.3 SSL_CTX_get_options.3 \
172	SSL_CTX_set_options.3 SSL_get_options.3 \
173	SSL_CTX_set_options.3 SSL_set_options.3 \
174	SSL_CTX_set_psk_client_callback.3 SSL_set_psk_client_callback.3 \
175	SSL_CTX_set_quiet_shutdown.3 SSL_CTX_get_quiet_shutdown.3 \
176	SSL_CTX_set_quiet_shutdown.3 SSL_get_quiet_shutdown.3 \
177	SSL_CTX_set_quiet_shutdown.3 SSL_set_quiet_shutdown.3 \
178	SSL_CTX_set_session_cache_mode.3 SSL_CTX_get_session_cache_mode.3 \
179	SSL_CTX_set_session_id_context.3 SSL_set_session_id_context.3 \
180	SSL_CTX_set_ssl_version.3 SSL_get_ssl_method.3 \
181	SSL_CTX_set_ssl_version.3 SSL_set_ssl_method.3 \
182	SSL_CTX_set_timeout.3 SSL_CTX_get_timeout.3 \
183	SSL_CTX_set_tmp_dh_callback.3 SSL_CTX_set_tmp_dh.3 \
184	SSL_CTX_set_tmp_dh_callback.3 SSL_set_tmp_dh.3 \
185	SSL_CTX_set_tmp_dh_callback.3 SSL_set_tmp_dh_callback.3 \
186	SSL_CTX_set_tmp_rsa_callback.3 SSL_CTX_need_tmp_rsa.3 \
187	SSL_CTX_set_tmp_rsa_callback.3 SSL_CTX_set_tmp_rsa.3 \
188	SSL_CTX_set_tmp_rsa_callback.3 SSL_need_tmp_rsa.3 \
189	SSL_CTX_set_tmp_rsa_callback.3 SSL_set_tmp_rsa.3 \
190	SSL_CTX_set_tmp_rsa_callback.3 SSL_set_tmp_rsa_callback.3 \
191	SSL_CTX_set_verify.3 SSL_CTX_set_verify_depth.3 \
192	SSL_CTX_set_verify.3 SSL_set_verify.3 \
193	SSL_CTX_set_verify.3 SSL_set_verify_depth.3 \
194	SSL_CTX_use_certificate.3 SSL_CTX_check_private_key.3 \
195	SSL_CTX_use_certificate.3 SSL_CTX_use_PrivateKey.3 \
196	SSL_CTX_use_certificate.3 SSL_CTX_use_PrivateKey_ASN1.3 \
197	SSL_CTX_use_certificate.3 SSL_CTX_use_PrivateKey_file.3 \
198	SSL_CTX_use_certificate.3 SSL_CTX_use_RSAPrivateKey.3 \
199	SSL_CTX_use_certificate.3 SSL_CTX_use_RSAPrivateKey_ASN1.3 \
200	SSL_CTX_use_certificate.3 SSL_CTX_use_RSAPrivateKey_file.3 \
201	SSL_CTX_use_certificate.3 SSL_CTX_use_certificate_ASN1.3 \
202	SSL_CTX_use_certificate.3 SSL_CTX_use_certificate_chain_file.3 \
203	SSL_CTX_use_certificate.3 SSL_CTX_use_certificate_chain_mem.3 \
204	SSL_CTX_use_certificate.3 SSL_CTX_use_certificate_file.3 \
205	SSL_CTX_use_certificate.3 SSL_check_private_key.3 \
206	SSL_CTX_use_certificate.3 SSL_use_PrivateKey.3 \
207	SSL_CTX_use_certificate.3 SSL_use_PrivateKey_ASN1.3 \
208	SSL_CTX_use_certificate.3 SSL_use_PrivateKey_file.3 \
209	SSL_CTX_use_certificate.3 SSL_use_RSAPrivateKey.3 \
210	SSL_CTX_use_certificate.3 SSL_use_RSAPrivateKey_ASN1.3 \
211	SSL_CTX_use_certificate.3 SSL_use_RSAPrivateKey_file.3 \
212	SSL_CTX_use_certificate.3 SSL_use_certificate.3 \
213	SSL_CTX_use_certificate.3 SSL_use_certificate_ASN1.3 \
214	SSL_CTX_use_certificate.3 SSL_use_certificate_file.3 \
215	SSL_CTX_use_psk_identity_hint.3 SSL_use_psk_identity_hint.3 \
216	SSL_CTX_use_psk_identity_hint.3 SSL_CTX_set_psk_server_callback.3 \
217	SSL_CTX_use_psk_identity_hint.3 SSL_set_psk_server_callback.3 \
218	SSL_SESSION_get_ex_new_index.3 SSL_SESSION_get_ex_data.3 \
219	SSL_SESSION_get_ex_new_index.3 SSL_SESSION_set_ex_data.3 \
220	SSL_SESSION_get_time.3 SSL_SESSION_get_timeout.3 \
221	SSL_SESSION_get_time.3 SSL_SESSION_set_time.3 \
222	SSL_SESSION_get_time.3 SSL_SESSION_set_timeout.3 \
223	SSL_SESSION_get_time.3 SSL_get_time.3 \
224	SSL_SESSION_get_time.3 SSL_get_timeout.3 \
225	SSL_SESSION_get_time.3 SSL_set_time.3 \
226	SSL_SESSION_get_time.3 SSL_set_timeout.3 \
227	SSL_alert_type_string.3 SSL_alert_desc_string.3 \
228	SSL_alert_type_string.3 SSL_alert_desc_string_long.3 \
229	SSL_alert_type_string.3 SSL_alert_type_string_long.3 \
230	SSL_get_ciphers.3 SSL_get_cipher_list.3 \
231	SSL_get_client_CA_list.3 SSL_CTX_get_client_CA_list.3 \
232	SSL_get_current_cipher.3 SSL_get_cipher.3 \
233	SSL_get_current_cipher.3 SSL_get_cipher_bits.3 \
234	SSL_get_current_cipher.3 SSL_get_cipher_name.3 \
235	SSL_get_current_cipher.3 SSL_get_cipher_version.3 \
236	SSL_get_ex_new_index.3 SSL_get_ex_data.3 \
237	SSL_get_ex_new_index.3 SSL_set_ex_data.3 \
238	SSL_get_fd.3 SSL_get_rfd.3 \
239	SSL_get_fd.3 SSL_get_wfd.3 \
240	SSL_get_psk_identity.3 SSL_get_psk_identity_hint.3 \
241	SSL_get_rbio.3 SSL_get_wbio.3 \
242	SSL_get_session.3 SSL_get0_session.3 \
243	SSL_get_session.3 SSL_get1_session.3 \
244	SSL_library_init.3 OpenSSL_add_ssl_algorithms.3 \
245	SSL_library_init.3 SSLeay_add_ssl_algorithms.3 \
246	SSL_rstate_string.3 SSL_rstate_string_long.3 \
247	SSL_set_connect_state.3 SSL_set_accept_state.3 \
248	SSL_set_fd.3 SSL_set_rfd.3 \
249	SSL_set_fd.3 SSL_set_wfd.3 \
250	SSL_set_shutdown.3 SSL_get_shutdown.3 \
251	SSL_state_string.3 SSL_state_string_long.3 \
252	SSL_want.3 SSL_want_nothing.3 \
253	SSL_want.3 SSL_want_read.3 \
254	SSL_want.3 SSL_want_write.3 \
255	SSL_want.3 SSL_want_x509_lookup.3 \
256	d2i_SSL_SESSION.3 i2d_SSL_SESSION.3 \
257
258.include <bsd.man.mk>
259.else
260maninstall:
261
262.endif
263
264.PATH: ${.CURDIR}/../src/doc/ssl
265.SUFFIXES: .pod .1 .3 .7
266.for sect in 1 3 7
267.pod.${sect}:
268	@echo '${POD2MAN} --section=${sect} --name=${*:U} $< > $@'
269	@${POD2MAN} --section=${sect} --name=${*:U} $< > $@.tmp && mv $@.tmp $@
270.endfor
271
272.include <bsd.obj.mk>
273.include <bsd.subdir.mk>
274
275clean cleandir:
276	rm -f ${MAN}
277