فهرست منبع

tls: removed trailing spaces

Daniel-Constantin Mierla 1 سال پیش
والد
کامیت
cc2d5f1689

+ 2 - 2
src/modules/tls/sbufq.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Kamailio TLS module
  *
  * Copyright (C) 2010 iptelorg GmbH
@@ -206,7 +206,7 @@ inline static unsigned int sbufq_destroy(struct sbuffer_queue *q)
 
 
 /** tries to flush the queue.
- * Tries to flush as much as possible from the given queue, using the 
+ * Tries to flush as much as possible from the given queue, using the
  * given callback.
  * WARNING: it does no attempt to synchronize access/lock. If needed it should
  * be called under lock.

+ 1 - 1
src/modules/tls/tls_bio.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Kamailio TLS module
  *
  * Copyright (C) 2010 iptelorg GmbH

+ 1 - 1
src/modules/tls/tls_cfg.c

@@ -1,4 +1,4 @@
-/* 
+/*
  * Kamailio TLS module
  *
  * Copyright (C) 2010 iptelorg GmbH

+ 2 - 2
src/modules/tls/tls_cfg.h

@@ -1,6 +1,6 @@
-/* 
+/*
  * TLS module
- * 
+ *
  * Copyright (C) 2010 iptelorg GmbH
  * Copyright (C) 2013 Motorola Solutions, Inc.
  *

+ 1 - 1
src/modules/tls/tls_config.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * TLS module
  *
  * Copyright (C) 2005,2006 iptelorg GmbH

+ 4 - 4
src/modules/tls/tls_ct_q.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * TLS module
  *
  * Copyright (C) 2010 iptelorg GmbH
@@ -69,7 +69,7 @@ error:
 
 /**
  * @brief Destroy a buffer queue
- * 
+ *
  * Everything is destroyed from a buffer queue (shm_free()'d), included the queue head.
  * @warning it does no attempt to synchronize access/lock. If needed it should
  * be called under lock.
@@ -92,8 +92,8 @@ inline static unsigned int tls_ct_q_destroy(tls_ct_q **ct_q)
 
 /**
  * @brief Tries to flush the tls clear text queue
- * 
- * Tries to flush as much as possible from the given queue, using the 
+ *
+ * Tries to flush as much as possible from the given queue, using the
  * given callback.
  * @warning it does no attempt to synchronize access/lock. If needed it should
  * be called under lock.

+ 3 - 3
src/modules/tls/tls_ct_wrq.c

@@ -1,4 +1,4 @@
-/* 
+/*
  * TLS module
  *
  * Copyright (C) 2010 iptelorg GmbH
@@ -123,7 +123,7 @@ static int ssl_flush(void *tcp_c, void *error, const void *buf, unsigned size)
 
 /**
  * @brief Wrapper over tls_ct_q_flush()
- * 
+ *
  * Wrapper over tls_ct_q_flush(), besides doing a tls_ct_q_add it
  * also keeps track of queue size and total queued bytes.
  * @param c TCP connection
@@ -150,7 +150,7 @@ int tls_ct_wq_flush(
 
 /**
  * @brief Wrapper over tls_ct_q_add()
- * 
+ *
  * Wrapper over tls_ct_q_add(), besides doing a tls_ct_q_add it
  * also keeps track of queue size and total queued bytes.
  * If the maximum queue size is exceeded => error.

+ 3 - 3
src/modules/tls/tls_ct_wrq.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * TLS module
  *
  * Copyright (C) 2010 iptelorg GmbH
@@ -56,7 +56,7 @@ unsigned int tls_ct_wq_total_bytes();
 
 /**
  * @brief Wrapper over tls_ct_q_flush()
- * 
+ *
  * Wrapper over tls_ct_q_flush(), besides doing a tls_ct_q_add it
  * also keeps track of queue size and total queued bytes.
  * @param c TCP connection
@@ -71,7 +71,7 @@ int tls_ct_wq_flush(
 
 /**
  * @brief Wrapper over tls_ct_q_add()
- * 
+ *
  * Wrapper over tls_ct_q_add(), besides doing a tls_ct_q_add it
  * also keeps track of queue size and total queued bytes.
  * If the maximum queue size is exceeded => error.

+ 9 - 9
src/modules/tls/tls_domain.c

@@ -173,7 +173,7 @@ static void setup_dh(SSL_CTX *ctx)
 
 /**
  * @brief Create a new TLS domain structure
- * 
+ *
  * Create a new domain structure in new allocated shared memory.
  * @param type domain Type
  * @param ip domain IP
@@ -327,7 +327,7 @@ char *tls_domain_str(tls_domain_t *d)
 
 /**
  * @brief Initialize TLS domain parameters that have not been configured yet
- * 
+ *
  * Initialize TLS domain parameters that have not been configured from
  * parent domain (usually one of default domains)
  * @param d initialized domain
@@ -409,7 +409,7 @@ static int ksr_tls_fill_missing(tls_domain_t *d, tls_domain_t *parent)
 }
 
 
-/** 
+/**
  * @brief Called for ctx, with 2 args
  * @param ctx SSL context
  * @param larg ?
@@ -526,12 +526,12 @@ static int tls_foreach_CTX_in_cfg(
 
 /**
  * @brief Fix pathnames when loading domain keys or other list
- * 
+ *
  * Fix pathnames, to be used when loading the domain key, cert, ca list a.s.o.
  * It will replace path with a fixed shm allocated version. Assumes path->s
  * was shm allocated.
  * @param path path to be fixed. If it starts with '.' or '/' is left alone
- * (forced "relative" or "absolute" path). Otherwise the path is considered 
+ * (forced "relative" or "absolute" path). Otherwise the path is considered
  * to be relative to the main config file directory
  * (e.g. for /etc/ser/ser.cfg => /etc/ser/\<path\>).
  * @return  0 on success, -1 on error
@@ -824,7 +824,7 @@ static void sr_ssl_ctx_info_callback(const SSL *ssl, int event, int ret)
 }
 
 /**
- * @brief Configure generic SSL parameters 
+ * @brief Configure generic SSL parameters
  * @param d domain
  * @return 0
  */
@@ -879,7 +879,7 @@ static int set_ssl_options(tls_domain_t *d)
 
 
 /**
- * @brief Configure TLS session cache parameters 
+ * @brief Configure TLS session cache parameters
  * @param d domain
  * @return 0
  */
@@ -1327,7 +1327,7 @@ static int load_engine_private_key(tls_domain_t *d)
 }
 #endif
 /**
- * @brief Load a private key from a file 
+ * @brief Load a private key from a file
  * @param d TLS domain
  * @return 0 on success, -1 on error
  */
@@ -1586,7 +1586,7 @@ int tls_fix_domains_cfg(tls_domains_cfg_t *cfg, tls_domain_t *srv_defaults,
 
 /**
  * @brief Create new configuration structure
- * 
+ *
  * Create new configuration structure in new allocated shared memory
  * @return configuration structure or zero on error
  */

+ 3 - 3
src/modules/tls/tls_domain.h

@@ -150,7 +150,7 @@ typedef struct tls_domains_cfg
 
 /**
  * @brief Create a new TLS domain structure
- * 
+ *
  * Create a new domain structure in new allocated shared memory.
  * @param type domain Type
  * @param ip domain IP
@@ -177,7 +177,7 @@ char *tls_domain_str(tls_domain_t *d);
 
 /**
  * @brief Create new TLS configuration structure
- * 
+ *
  * Create new configuration structure in new allocated shared memory.
  * @return configuration structure or zero on error
  */
@@ -195,7 +195,7 @@ int tls_add_domain(tls_domains_cfg_t *cfg, tls_domain_t *d);
 
 /**
  * @brief Initialize attributes of all domains from default domains if necessary
- * 
+ *
  * Initialize attributes of all domains from default domains if necessary,
  * fill in missing parameters.
  * @param cfg initialized domain

+ 2 - 2
src/modules/tls/tls_dump_vf.h

@@ -15,8 +15,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  *
  * Exception: permission to copy, modify, propagate, and distribute a work

+ 1 - 1
src/modules/tls/tls_locking.h

@@ -1,7 +1,7 @@
 /*
  * TLS module
  *
- * Copyright (C) 2007 iptelorg GmbH 
+ * Copyright (C) 2007 iptelorg GmbH
  *
  * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above

+ 1 - 1
src/modules/tls/tls_map.c

@@ -1,4 +1,4 @@
-/** 
+/**
  * Copyright (c) 2014 rxi
  *
  * This library is free software; you can redistribute it and/or modify it

+ 1 - 1
src/modules/tls/tls_map.h

@@ -1,4 +1,4 @@
-/** 
+/**
  * Copyright (c) 2014 rxi
  *
  * This library is free software; you can redistribute it and/or modify it

+ 1 - 1
src/modules/tls/tls_mod.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * TLS module - module interface
  *
  * Copyright (C) 2005 iptelorg GmbH

+ 1 - 1
src/modules/tls/tls_util.c

@@ -1,4 +1,4 @@
-/* 
+/*
  * TLS module
  *
  * Copyright (C) 2005 iptelorg GmbH

+ 1 - 1
src/modules/tls/tls_util.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * TLS module
  *
  * Copyright (C) 2010 iptelorg GmbH

+ 2 - 2
src/modules/tls/tls_verify.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * TLS module - certificate verification function
  *
  * Copyright (C) 2005 iptelorg GmbH
@@ -28,7 +28,7 @@
 
 #include <openssl/ssl.h>
 
-/* This callback is called during each verification process, 
+/* This callback is called during each verification process,
 at each step during the chain of certificates (this function
 is not the certificate_verification one!). */
 int verify_callback(int pre_verify_ok, X509_STORE_CTX *ctx);