mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-09-06 17:14:02 +00:00
libnm/crypto: rename libnm's crypto files
"crypto.h" did not follow our common NM style naming. Rename the files.
This commit is contained in:
parent
3c157d186c
commit
4106f2968d
12
Makefile.am
12
Makefile.am
|
@ -508,7 +508,7 @@ libnm_core_lib_h_priv = \
|
|||
shared/nm-utils/nm-udev-utils.h \
|
||||
shared/nm-ethtool-utils.h \
|
||||
shared/nm-meta-setting.h \
|
||||
libnm-core/crypto.h \
|
||||
libnm-core/nm-crypto.h \
|
||||
libnm-core/nm-connection-private.h \
|
||||
libnm-core/nm-core-internal.h \
|
||||
libnm-core/nm-core-types-internal.h \
|
||||
|
@ -576,7 +576,7 @@ libnm_core_lib_c_real = \
|
|||
shared/nm-utils/nm-udev-utils.c \
|
||||
shared/nm-ethtool-utils.c \
|
||||
shared/nm-meta-setting.c \
|
||||
libnm-core/crypto.c \
|
||||
libnm-core/nm-crypto.c \
|
||||
libnm-core/nm-connection.c \
|
||||
libnm-core/nm-dbus-utils.c \
|
||||
libnm-core/nm-errors.c \
|
||||
|
@ -683,18 +683,18 @@ libnm_core_libnm_core_la_LDFLAGS = \
|
|||
$(SANITIZER_LIB_LDFLAGS)
|
||||
|
||||
if WITH_GNUTLS
|
||||
libnm_core_lib_c_real += libnm-core/crypto_gnutls.c
|
||||
libnm_core_lib_c_real += libnm-core/nm-crypto-gnutls.c
|
||||
libnm_core_libnm_core_la_LIBADD += $(GNUTLS_LIBS)
|
||||
endif
|
||||
|
||||
if WITH_NSS
|
||||
libnm_core_lib_c_real += libnm-core/crypto_nss.c
|
||||
libnm_core_lib_c_real += libnm-core/nm-crypto-nss.c
|
||||
libnm_core_libnm_core_la_LIBADD += $(NSS_LIBS)
|
||||
endif
|
||||
|
||||
EXTRA_DIST += \
|
||||
libnm-core/crypto_gnutls.c \
|
||||
libnm-core/crypto_nss.c \
|
||||
libnm-core/nm-crypto-gnutls.c \
|
||||
libnm-core/nm-crypto-nss.c \
|
||||
libnm-core/nm-core-enum-types.c.template \
|
||||
libnm-core/nm-core-enum-types.h.template \
|
||||
libnm-core/meson.build
|
||||
|
|
|
@ -32,7 +32,7 @@ CFILE_GLOB=$(top_srcdir)/libnm-core/*.c $(top_srcdir)/libnm/*.c
|
|||
# Header files to ignore when scanning.
|
||||
IGNORE_HFILES= \
|
||||
common.h \
|
||||
crypto.h \
|
||||
nm-crypto.h \
|
||||
nm-dbus-helpers.h \
|
||||
nm-core-internal.h \
|
||||
nm-core-types-internal.h \
|
||||
|
|
|
@ -2,7 +2,7 @@ doc_module = libnm_name
|
|||
|
||||
private_headers = [
|
||||
'common.h',
|
||||
'crypto.h',
|
||||
'nm-crypto.h',
|
||||
'nm-dbus-helpers.h',
|
||||
'nm-core-internal.h',
|
||||
'nm-core-types-internal.h',
|
||||
|
|
|
@ -107,8 +107,8 @@ libnm_core_settings_sources = files(
|
|||
)
|
||||
|
||||
libnm_core_sources = libnm_core_settings_sources + files(
|
||||
'crypto.c',
|
||||
'crypto_' + crypto + '.c',
|
||||
'nm-crypto.c',
|
||||
'nm-crypto-' + crypto + '.c',
|
||||
'nm-connection.c',
|
||||
'nm-dbus-utils.c',
|
||||
'nm-errors.c',
|
||||
|
|
|
@ -23,12 +23,13 @@
|
|||
|
||||
#include "nm-default.h"
|
||||
|
||||
#include "nm-crypto.h"
|
||||
|
||||
#include <gnutls/gnutls.h>
|
||||
#include <gnutls/crypto.h>
|
||||
#include <gnutls/x509.h>
|
||||
#include <gnutls/pkcs12.h>
|
||||
|
||||
#include "crypto.h"
|
||||
#include "nm-errors.h"
|
||||
|
||||
#define SALT_LEN 8
|
|
@ -23,6 +23,8 @@
|
|||
|
||||
#include "nm-default.h"
|
||||
|
||||
#include "nm-crypto.h"
|
||||
|
||||
#include <prinit.h>
|
||||
#include <nss.h>
|
||||
#include <pk11pub.h>
|
||||
|
@ -33,7 +35,6 @@
|
|||
#include <ciferfam.h>
|
||||
#include <p12plcy.h>
|
||||
|
||||
#include "crypto.h"
|
||||
#include "nm-errors.h"
|
||||
|
||||
static gboolean initialized = FALSE;
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
#include "nm-default.h"
|
||||
|
||||
#include "crypto.h"
|
||||
#include "nm-crypto.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <strings.h>
|
|
@ -21,8 +21,8 @@
|
|||
* Copyright 2007 - 2014 Red Hat, Inc.
|
||||
*/
|
||||
|
||||
#ifndef __CRYPTO_H__
|
||||
#define __CRYPTO_H__
|
||||
#ifndef __NM_CRYPTO_H__
|
||||
#define __NM_CRYPTO_H__
|
||||
|
||||
#if !((NETWORKMANAGER_COMPILATION) & NM_NETWORKMANAGER_COMPILATION_WITH_LIBNM_CORE_PRIVATE)
|
||||
#error Cannot use this header.
|
||||
|
@ -134,4 +134,4 @@ gboolean crypto_verify_pkcs8 (const guint8 *data,
|
|||
const char *password,
|
||||
GError **error);
|
||||
|
||||
#endif /* __CRYPTO_H__ */
|
||||
#endif /* __NM_CRYPTO_H__ */
|
|
@ -27,7 +27,7 @@
|
|||
#include <string.h>
|
||||
|
||||
#include "nm-utils.h"
|
||||
#include "crypto.h"
|
||||
#include "nm-crypto.h"
|
||||
#include "nm-utils-private.h"
|
||||
#include "nm-setting-private.h"
|
||||
#include "nm-core-enum-types.h"
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
#include "nm-common-macros.h"
|
||||
#include "nm-utils-private.h"
|
||||
#include "nm-setting-private.h"
|
||||
#include "crypto.h"
|
||||
#include "nm-crypto.h"
|
||||
#include "nm-setting-bond.h"
|
||||
#include "nm-setting-bridge.h"
|
||||
#include "nm-setting-infiniband.h"
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "crypto.h"
|
||||
#include "nm-crypto.h"
|
||||
#include "nm-utils.h"
|
||||
#include "nm-errors.h"
|
||||
#include "nm-core-internal.h"
|
||||
|
|
|
@ -51,9 +51,9 @@ clients/tui/nmtui-connect.c
|
|||
clients/tui/nmtui-edit.c
|
||||
clients/tui/nmtui-hostname.c
|
||||
clients/tui/nmtui.c
|
||||
libnm-core/crypto.c
|
||||
libnm-core/crypto_gnutls.c
|
||||
libnm-core/crypto_nss.c
|
||||
libnm-core/nm-crypto.c
|
||||
libnm-core/nm-crypto-gnutls.c
|
||||
libnm-core/nm-crypto-nss.c
|
||||
libnm-core/nm-connection.c
|
||||
libnm-core/nm-dbus-utils.c
|
||||
libnm-core/nm-keyfile.c
|
||||
|
|
Loading…
Reference in a new issue