]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Added copyright notices.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Fri, 14 Apr 2000 17:31:28 +0000 (17:31 +0000)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Fri, 14 Apr 2000 17:31:28 +0000 (17:31 +0000)
15 files changed:
lib/debug.c
lib/gnutls.c
lib/gnutls.h
lib/gnutls_algorithms.c
lib/gnutls_buffers.c
lib/gnutls_cipher.c
lib/gnutls_compress.c
lib/gnutls_dh.c
lib/gnutls_errors.c
lib/gnutls_handshake.c
lib/gnutls_kx.c
lib/gnutls_num.c
lib/gnutls_plaintext.c
src/cli.c
src/serv.c

index 6eeffabb8fb653c7b2c2d02bf963dc620bc78894..55801f9cb8e9566902ab85db981b43f8c31bb4e3 100644 (file)
@@ -1,3 +1,23 @@
+/*
+ *      Copyright (C) 2000 Nikos Mavroyanopoulos
+ *
+ * This file is part of GNUTLS.
+ *
+ * GNUTLS is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * GNUTLS is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * 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
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+ */
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <defines.h>
index 5495fa0268681fe8f053a42f3d4ca7d30a3e0784..6aec640994c586748081185d273024551be57a5e 100644 (file)
@@ -1,3 +1,23 @@
+/*
+ *      Copyright (C) 2000 Nikos Mavroyanopoulos
+ *
+ * This file is part of GNUTLS.
+ *
+ * GNUTLS is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * GNUTLS is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * 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
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+ */
+
 #include <defines.h>
 #include "gnutls_int.h"
 #include "gnutls_errors.h"
index 5efdc1245686d0971dee4578e8d05a4d57e1f4cd..9c189a823bcb8a7632d5e898074b4814c58e9fe9 100644 (file)
@@ -1,3 +1,23 @@
+/*
+ *      Copyright (C) 2000 Nikos Mavroyanopoulos
+ *
+ * This file is part of GNUTLS.
+ *
+ * GNUTLS is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * GNUTLS is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * 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
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+ */
+
 enum ContentType { GNUTLS_APPLICATION_DATA=23 };
 typedef enum ContentType ContentType;
 enum BulkCipherAlgorithm { CIPHER_NULL, CIPHER_3DES = 4 };
index c0811be18b71da4ceee76951d5a5019224919866..8fbdbb31255b9ce8b399d8097ddb3d02fdbb2d67 100644 (file)
@@ -1,3 +1,23 @@
+/*
+ *      Copyright (C) 2000 Nikos Mavroyanopoulos
+ *
+ * This file is part of GNUTLS.
+ *
+ * GNUTLS is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * GNUTLS is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * 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
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+ */
+
 #include <defines.h>
 #include "gnutls_int.h"
 #include "gnutls_algorithms.h"
index c75ecc18015582691528ae85f061358b7380bcab..08f5f92c98471e346ca8085887bcc8207a4b17f7 100644 (file)
@@ -1,3 +1,23 @@
+/*
+ *      Copyright (C) 2000 Nikos Mavroyanopoulos
+ *
+ * This file is part of GNUTLS.
+ *
+ * GNUTLS is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * GNUTLS is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * 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
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+ */
+
 #include <defines.h>
 #include "gnutls_int.h"
 #include "gnutls_errors.h"
index 8c84442652b4a3e438177a5167e8b835d95c6f81..c824148d1aefc600561515ed60ee8b3986439722 100644 (file)
@@ -1,3 +1,23 @@
+/*
+ *      Copyright (C) 2000 Nikos Mavroyanopoulos
+ *
+ * This file is part of GNUTLS.
+ *
+ * GNUTLS is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * GNUTLS is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * 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
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+ */
+
 #include <defines.h>
 #include "gnutls_int.h"
 #include "gnutls_errors.h"
index 9938da3b5efdb4f25d51874245342c34318117d5..971dcfc329163b51f0b550d4c27a1e14e18c64db 100644 (file)
@@ -1,3 +1,23 @@
+/*
+ *      Copyright (C) 2000 Nikos Mavroyanopoulos
+ *
+ * This file is part of GNUTLS.
+ *
+ * GNUTLS is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * GNUTLS is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * 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
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+ */
+
 #include <defines.h>
 #include "gnutls_int.h"
 #include "gnutls_compress.h"
index ebde6f33fb0368f434c0b94250889a852eecbad7..9b4384ad5e9bacfe0563528412a1966beae992cf 100644 (file)
@@ -1,3 +1,23 @@
+/*
+ *      Copyright (C) 2000 Nikos Mavroyanopoulos
+ *
+ * This file is part of GNUTLS.
+ *
+ * GNUTLS is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * GNUTLS is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * 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
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+ */
+
 #include <defines.h>
 #include <gnutls_int.h>
 
index 79e262513d14b40bb67870df21acff4b33e6f3f9..9f154d2f8acd7680848237d4c0ef26b39206dcc5 100644 (file)
@@ -1,3 +1,23 @@
+/*
+ *      Copyright (C) 2000 Nikos Mavroyanopoulos
+ *
+ * This file is part of GNUTLS.
+ *
+ * GNUTLS is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * GNUTLS is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * 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
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+ */
+
 #include "defines.h"
 #include "gnutls_errors.h"
 
index c2e159591f518a9c632d81369d2c3c0f900eb457..967be1722bc6a9b8174b3065d3d96a06025e49cc 100644 (file)
@@ -1,3 +1,23 @@
+/*
+ *      Copyright (C) 2000 Nikos Mavroyanopoulos
+ *
+ * This file is part of GNUTLS.
+ *
+ * GNUTLS is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * GNUTLS is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * 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
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+ */
+
 #include <defines.h>
 #include "gnutls_int.h"
 #include "gnutls_errors.h"
index e87af93ede1797d2e363bfcc7da5636c55b80b08..a8802bbbc661debdb82cd24bf4d6a06676f2403d 100644 (file)
@@ -1,3 +1,23 @@
+/*
+ *      Copyright (C) 2000 Nikos Mavroyanopoulos
+ *
+ * This file is part of GNUTLS.
+ *
+ * GNUTLS is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * GNUTLS is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * 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
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+ */
+
 #include "defines.h"
 #include "gnutls_int.h"
 #include "gnutls_handshake.h"
index 141d43c266615f9cf4147e94806aeb7466f8d554..2b78986965a10bdeec74324d26bf5822b24ae7fa 100644 (file)
@@ -1,3 +1,23 @@
+/*
+ *      Copyright (C) 2000 Nikos Mavroyanopoulos
+ *
+ * This file is part of GNUTLS.
+ *
+ * GNUTLS is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * GNUTLS is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * 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
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+ */
+
 #include <defines.h>
 #include <gnutls_int.h>
 
index a5fa4357e86b0c8f6d715af2d53fc3d74ae3b92b..2f0b4ce4ea0ddbfb84dab8e15a86c05a1904c1ed 100644 (file)
@@ -1,3 +1,23 @@
+/*
+ *      Copyright (C) 2000 Nikos Mavroyanopoulos
+ *
+ * This file is part of GNUTLS.
+ *
+ * GNUTLS is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * GNUTLS is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * 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
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+ */
+
 #include <defines.h>
 #include "gnutls_int.h"
 #include "gnutls_errors.h"
index 7ce0ba735bb74641b10fdfdd58bf7245106fd661..2d093fc23a4b85d83634293dbba4be3ff0ca1722 100644 (file)
--- a/src/cli.c
+++ b/src/cli.c
@@ -1,3 +1,23 @@
+/*
+ *      Copyright (C) 2000 Nikos Mavroyanopoulos
+ *
+ * This file is part of GNUTLS.
+ *
+ * GNUTLS is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * GNUTLS is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * 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
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+ */
+
 #include <stdio.h>
 #include <errno.h>
 #include <sys/types.h>
@@ -19,8 +39,8 @@ int main()
        GNUTLS_STATE state;
        char buffer[100];
 
-//     signal(SIGPIPE, SIG_IGN);
-       
+//      signal(SIGPIPE, SIG_IGN);
+
        sd = socket(AF_INET, SOCK_STREAM, 0);
        ERR(sd, "socket");
 
@@ -34,8 +54,8 @@ int main()
 
        gnutls_init(&state, GNUTLS_CLIENT);
        ret = gnutls_handshake(sd, state);
-       
-       if (ret<0) {
+
+       if (ret < 0) {
                fprintf(stderr, "Handshake has failed\n");
                gnutls_perror(ret);
                return 1;
@@ -45,25 +65,29 @@ int main()
 
        bzero(buffer, sizeof(buffer));
        ret = gnutls_recv(sd, state, buffer, 5);
-       if (gnutls_is_fatal_error(ret)==1) {
+       if (gnutls_is_fatal_error(ret) == 1) {
                if (ret == GNUTLS_E_CLOSURE_ALERT_RECEIVED) {
-                       fprintf(stderr, "Peer has closed the GNUTLS connection\n");
+                       fprintf(stderr,
+                               "Peer has closed the GNUTLS connection\n");
                        return 0;
                } else {
-                       fprintf(stderr, "Received corrupted data(%d)\n", ret);
+                       fprintf(stderr, "Received corrupted data(%d)\n",
+                               ret);
                        return 1;
                }
        } else {
                fprintf(stdout, "Received: %s\n", buffer);
        }
-       
+
        ret = gnutls_recv(sd, state, buffer, 10);
-       if (gnutls_is_fatal_error(ret)==1) {
+       if (gnutls_is_fatal_error(ret) == 1) {
                if (ret == GNUTLS_E_CLOSURE_ALERT_RECEIVED) {
-                       fprintf(stderr, "Peer has closed the GNUTLS connection\n");
+                       fprintf(stderr,
+                               "Peer has closed the GNUTLS connection\n");
                        return 0;
                } else {
-                       fprintf(stderr, "Received corrupted data(%d)\n", ret);
+                       fprintf(stderr, "Received corrupted data(%d)\n",
+                               ret);
                        return 1;
                }
        } else {
index 3630b55d41f88ea8d14a968d96e731993edf4e67..e48b6f82339fdb1baa404be0cb4811837d40963e 100644 (file)
@@ -1,3 +1,23 @@
+/*
+ *      Copyright (C) 2000 Nikos Mavroyanopoulos
+ *
+ * This file is part of GNUTLS.
+ *
+ * GNUTLS is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * GNUTLS is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * 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
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+ */
+
 #include <stdio.h>
 #include <errno.h>
 #include <sys/types.h>
@@ -49,7 +69,7 @@ int main()
 
 
                ret = gnutls_handshake(sd, state);
-               if (ret<0) {
+               if (ret < 0) {
                        close(sd);
                        gnutls_deinit(&state);
                        fprintf(stderr, "Handshake has failed\n", ret);
@@ -58,8 +78,10 @@ int main()
                }
                fprintf(stderr, "Handshake was completed\n");
 
-               ret = gnutls_send(sd, state, "hello world\n", sizeof("hello world\n"));
-               if (ret<0) {
+               ret =
+                   gnutls_send(sd, state, "hello world\n",
+                               sizeof("hello world\n"));
+               if (ret < 0) {
                        close(sd);
                        gnutls_deinit(&state);
                        gnutls_perror(ret);