Some whitespace fixes.
authorTobias Brunner <tobias@strongswan.org>
Tue, 6 Apr 2010 10:56:06 +0000 (12:56 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 6 Apr 2010 10:56:06 +0000 (12:56 +0200)
src/libstrongswan/plugins/openssl/openssl_ec_private_key.c
src/libstrongswan/plugins/openssl/openssl_ec_public_key.c
src/libstrongswan/plugins/openssl/openssl_rsa_private_key.c
src/libstrongswan/plugins/openssl/openssl_rsa_public_key.c
src/libstrongswan/plugins/pem/pem_encoder.c

index f355c20..bdcfda9 100644 (file)
@@ -249,7 +249,7 @@ static bool get_encoding(private_openssl_ec_private_key_t *this,
                                                                NULL, encoding, KEY_PART_ECDSA_PRIV_ASN1_DER,
                                                                asn1_encoding, KEY_PART_END);
                                chunk_clear(&asn1_encoding);
-                       }                                       
+                       }
                        return success;
                }
                default:
index 454e000..790a848 100644 (file)
@@ -264,7 +264,7 @@ static bool get_encoding(private_openssl_ec_public_key_t *this,
                                                                NULL, encoding, KEY_PART_ECDSA_PUB_ASN1_DER,
                                                                asn1_encoding, KEY_PART_END);
                                chunk_clear(&asn1_encoding);
-                       }                                       
+                       }
                        return success;
                }
                default:
index 6af593a..d4a49c1 100644 (file)
@@ -242,7 +242,7 @@ static bool get_encoding(private_openssl_rsa_private_key_t *this,
                                                                NULL, encoding, KEY_PART_RSA_PRIV_ASN1_DER,
                                                                asn1_encoding, KEY_PART_END);
                                chunk_clear(&asn1_encoding);
-                       }                                       
+                       }
                        return success;
                }
                default:
index dd079e7..ffa575a 100644 (file)
@@ -247,7 +247,7 @@ static bool get_encoding(private_openssl_rsa_public_key_t *this,
                                                                NULL, encoding, KEY_PART_RSA_PUB_ASN1_DER,
                                                                asn1_encoding, KEY_PART_END);
                                chunk_clear(&asn1_encoding);
-                       }                                       
+                       }
                        return success;
                }
                case KEY_PUB_ASN1_DER:
index 428341a..48a2674 100644 (file)
@@ -60,7 +60,7 @@ bool pem_encoder_encode(key_encoding_type_t type, chunk_t *encoding,
 
        /* compute and allocate maximum size of PEM object */
        pem_chars = 4*(asn1.len + 2)/3;
-       pem_lines = (asn1.len + BYTES_PER_LINE - 1) / BYTES_PER_LINE; 
+       pem_lines = (asn1.len + BYTES_PER_LINE - 1) / BYTES_PER_LINE;
        *encoding = chunk_alloc(5 + 2*(6 + strlen(label) + 6) + 3 + pem_chars + pem_lines);
        pos = encoding->ptr;
        len = encoding->len;
@@ -68,7 +68,7 @@ bool pem_encoder_encode(key_encoding_type_t type, chunk_t *encoding,
        /* write PEM header */
        written = snprintf(pos, len, "-----BEGIN %s-----\n", label);
        pos += written;
-       len -= written; 
+       len -= written;
 
        /* write PEM body */
        while (pem_lines--)
@@ -89,10 +89,10 @@ bool pem_encoder_encode(key_encoding_type_t type, chunk_t *encoding,
        /* write PEM trailer */
        written = snprintf(pos, len, "-----END %s-----", label);
        pos += written;
-       len -= written; 
+       len -= written;
 
        /* replace termination null character with newline */
-    *pos = '\n';
+       *pos = '\n';
        pos++;
        len--;