Added SILC Server library.
[silc.git] / lib / silcasn1 / silcber.c
index bfcafa37b5e276f0f3e560c08e7eab95569123de..8f43a3d6b6d11e5f13b8c5744f9bb7427c60ee1c 100644 (file)
@@ -18,7 +18,7 @@
 */
 /* Basic Encoding Rules (BER) encoder and decoder. */
 
-#include "silcincludes.h"
+#include "silc.h"
 #include "silcber.h"
 
 /* Encodes a BER data block into the `ber', which must already have
    function.  If the `indefinite' is TRUE then the BER block will not
    include the length of the data in the BER block. */
 
-bool silc_ber_encode(SilcBuffer ber, SilcBerClass ber_class,
+SilcBool silc_ber_encode(SilcBuffer ber, SilcBerClass ber_class,
                     SilcBerEncoding encoding, SilcUInt32 tag,
                     const unsigned char *data, SilcUInt32 data_len,
-                    bool indefinite)
+                    SilcBool indefinite)
 {
   int i = 0, c;
   SilcUInt32 tmp;
@@ -114,10 +114,10 @@ bool silc_ber_encode(SilcBuffer ber, SilcBerClass ber_class,
    `identifier_len' is the length of the BER header, and the length
    of the entire BER object is `identifier_len' + `data_len'. */
 
-bool silc_ber_decode(SilcBuffer ber, SilcBerClass *ber_class,
+SilcBool silc_ber_decode(SilcBuffer ber, SilcBerClass *ber_class,
                     SilcBerEncoding *encoding, SilcUInt32 *tag,
                     const unsigned char **data, SilcUInt32 *data_len,
-                    bool *indefinite, SilcUInt32 *identifier_len)
+                    SilcBool *indefinite, SilcUInt32 *identifier_len)
 {
   int i = 0, c;
   SilcUInt32 t;
@@ -240,7 +240,7 @@ bool silc_ber_decode(SilcBuffer ber, SilcBerClass *ber_class,
    encoding with silc_ber_encode. */
 
 SilcUInt32 silc_ber_encoded_len(SilcUInt32 tag, SilcUInt32 data_len,
-                               bool indefinite)
+                               SilcBool indefinite)
 {
   SilcUInt32 len, tmp;