Permalink
Browse files

Change license to Apache 2.0 to ensure compatibility with android stack.

  • Loading branch information...
1 parent 2b6dcc8 commit 79e22a67faf2d047d84f19bd27117ea33976829c @darkk committed Apr 20, 2011
Showing with 150 additions and 826 deletions.
  1. +0 −674 COPYING
  2. +3 −7 README
  3. +10 −11 base.c
  4. +12 −15 http-auth.c
  5. +13 −14 http-connect.c
  6. +13 −14 http-relay.c
  7. +10 −11 log.c
  8. +10 −11 main.c
  9. +10 −11 parser.c
  10. +10 −11 reddns.c
  11. +10 −11 redsocks.c
  12. +13 −14 redudp.c
  13. +10 −11 socks4.c
  14. +10 −11 socks5.c
  15. +16 −0 utils.c
View
674 COPYING

Large diffs are not rendered by default.

Oops, something went wrong.
View
10 README
@@ -41,11 +41,8 @@ proxying (e.g. old SQUID had broken `acl myport' for such connections).
License
=======
-All source code is licensed under GPLv3 or later. Contact the author
-if you want to use the code and GPLv3 (or later) does not permit you to
-do so.
-
-Text of GPLv3 is included in file `COPYING'.
+All source code is licensed under Apache 2.0 license.
+You can get a copy at http://www.apache.org/licenses/LICENSE-2.0.html
Compilation
@@ -115,10 +112,9 @@ TODO
Test OpenBSD (pf) and FreeBSD (ipfw) and write setup examples for those
firewall types.
-Allow redirecting of UDP and/or DNS packets.
+Allow redirecting of DNS packets.
Author
======
This program was written by Leonid Evdokimov <leon@darkk.net.ru>
-
View
21 base.c
@@ -1,18 +1,17 @@
/* redsocks - transparent TCP-to-proxy redirector
- * Copyright (C) 2007-2008 Leonid Evdokimov <leon@darkk.net.ru>
+ * Copyright (C) 2007-2011 Leonid Evdokimov <leon@darkk.net.ru>
*
- * This program 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 3 of the License, or
- * (at your option) any later version.
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy
+ * of the License at
*
- * This program 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.
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
+ * under the License.
*/
#include <sys/types.h>
View
@@ -1,24 +1,21 @@
/* redsocks - transparent TCP-to-proxy redirector
- * Copyright (C) 2007-2008 Leonid Evdokimov <leon@darkk.net.ru>
+ * Copyright (C) 2007-2011 Leonid Evdokimov <leon@darkk.net.ru>
*
- * This program 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 3 of the License, or
- * (at your option) any later version.
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy
+ * of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
+ * under the License.
*
- * This program 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, see <http://www.gnu.org/licenses/>.
- */
-
-/*
* http-auth library, provide basic and digest scheme
* see RFC 2617 for details
- *
*/
#include <string.h>
View
@@ -1,21 +1,20 @@
/* redsocks - transparent TCP-to-proxy redirector
- * Copyright (C) 2007-2008 Leonid Evdokimov <leon@darkk.net.ru>
+ * Copyright (C) 2007-2011 Leonid Evdokimov <leon@darkk.net.ru>
*
- * This program 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 3 of the License, or
- * (at your option) any later version.
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy
+ * of the License at
*
- * This program 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.
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-/** http-connect upstream module for redsocks
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
+ * under the License.
+ *
+ *
+ * http-connect upstream module for redsocks
*/
#include <assert.h>
View
@@ -1,21 +1,20 @@
/* redsocks - transparent TCP-to-proxy redirector
- * Copyright (C) 2007-2008 Leonid Evdokimov <leon@darkk.net.ru>
+ * Copyright (C) 2007-2011 Leonid Evdokimov <leon@darkk.net.ru>
*
- * This program 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 3 of the License, or
- * (at your option) any later version.
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy
+ * of the License at
*
- * This program 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.
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-/** http-relay upstream module for redsocks
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
+ * under the License.
+ *
+ *
+ * http-relay upstream module for redsocks
*/
#include <assert.h>
View
21 log.c
@@ -1,18 +1,17 @@
/* redsocks - transparent TCP-to-proxy redirector
- * Copyright (C) 2007-2008 Leonid Evdokimov <leon@darkk.net.ru>
+ * Copyright (C) 2007-2011 Leonid Evdokimov <leon@darkk.net.ru>
*
- * This program 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 3 of the License, or
- * (at your option) any later version.
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy
+ * of the License at
*
- * This program 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.
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
+ * under the License.
*/
#include <stdio.h>
View
21 main.c
@@ -1,18 +1,17 @@
/* redsocks - transparent TCP-to-proxy redirector
- * Copyright (C) 2007-2008 Leonid Evdokimov <leon@darkk.net.ru>
+ * Copyright (C) 2007-2011 Leonid Evdokimov <leon@darkk.net.ru>
*
- * This program 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 3 of the License, or
- * (at your option) any later version.
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy
+ * of the License at
*
- * This program 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.
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
+ * under the License.
*/
#include <sys/time.h>
View
@@ -1,18 +1,17 @@
/* redsocks - transparent TCP-to-proxy redirector
- * Copyright (C) 2007-2008 Leonid Evdokimov <leon@darkk.net.ru>
+ * Copyright (C) 2007-2011 Leonid Evdokimov <leon@darkk.net.ru>
*
- * This program 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 3 of the License, or
- * (at your option) any later version.
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy
+ * of the License at
*
- * This program 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.
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
+ * under the License.
*/
#include <stdlib.h>
View
@@ -1,18 +1,17 @@
/* redsocks - transparent TCP-to-proxy redirector
- * Copyright (C) 2007-2008 Leonid Evdokimov <leon@darkk.net.ru>
+ * Copyright (C) 2007-2011 Leonid Evdokimov <leon@darkk.net.ru>
*
- * This program 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 3 of the License, or
- * (at your option) any later version.
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy
+ * of the License at
*
- * This program 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.
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
+ * under the License.
*/
#include <arpa/inet.h>
View
@@ -1,18 +1,17 @@
/* redsocks - transparent TCP-to-proxy redirector
- * Copyright (C) 2007-2008 Leonid Evdokimov <leon@darkk.net.ru>
+ * Copyright (C) 2007-2011 Leonid Evdokimov <leon@darkk.net.ru>
*
- * This program 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 3 of the License, or
- * (at your option) any later version.
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy
+ * of the License at
*
- * This program 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.
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
+ * under the License.
*/
#include <sys/types.h>
View
@@ -1,18 +1,17 @@
/* redsocks - transparent TCP-to-proxy redirector
- * Copyright (C) 2007-2008 Leonid Evdokimov <leon@darkk.net.ru>
- *
- * This program 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 3 of the License, or
- * (at your option) any later version.
- *
- * This program 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, see <http://www.gnu.org/licenses/>.
+ * Copyright (C) 2007-2011 Leonid Evdokimov <leon@darkk.net.ru>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy
+ * of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
+ * under the License.
*/
#include <stdlib.h>
View
@@ -1,18 +1,17 @@
/* redsocks - transparent TCP-to-proxy redirector
- * Copyright (C) 2007-2008 Leonid Evdokimov <leon@darkk.net.ru>
+ * Copyright (C) 2007-2011 Leonid Evdokimov <leon@darkk.net.ru>
*
- * This program 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 3 of the License, or
- * (at your option) any later version.
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy
+ * of the License at
*
- * This program 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.
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
+ * under the License.
*/
#include <stdlib.h>
View
@@ -1,18 +1,17 @@
/* redsocks - transparent TCP-to-proxy redirector
- * Copyright (C) 2007-2008 Leonid Evdokimov <leon@darkk.net.ru>
+ * Copyright (C) 2007-2011 Leonid Evdokimov <leon@darkk.net.ru>
*
- * This program 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 3 of the License, or
- * (at your option) any later version.
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy
+ * of the License at
*
- * This program 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.
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
+ * under the License.
*/
#include <stdlib.h>
Oops, something went wrong.

0 comments on commit 79e22a6

Please sign in to comment.