mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-13 10:11:43 +00:00
os: secure-rpc: check struct authdes_cred
Some platforms (eg. NetBSD) don't have DES support in rpc anymore, so we
should check, in order to prevent weird, hard to understand build breaks.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1441>
(cherry picked from commit 339717bac6)
This commit is contained in:
committed by
Alan Coopersmith
parent
99192ff50f
commit
012ca2616e
@@ -68,6 +68,12 @@ if get_option('secure-rpc')
|
||||
# XXX: also check if RPC library provides xdr_opaque_auth, authdes_(sec)create ???
|
||||
srcs_os += 'rpcauth.c'
|
||||
|
||||
if not (cc.has_member('struct authdes_cred', 'adc_fullname',
|
||||
prefix : '#include <rpc/rpc.h>',
|
||||
dependencies: rpc_dep))
|
||||
error('secure-rpc requested, but RPC implementation lacking struct authdes_cred')
|
||||
endif
|
||||
|
||||
os_c_args += '-DSECURE_RPC'
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user