Changeset 41358


Ignore:
Timestamp:
2014-06-27T12:40:44+02:00 (4 years ago)
Author:
jow
Message:

6in4: send password unhashed

The preferred he.net /nic/update endpoint expects the password or updatekey in
plain text and not as md5 sum, therfore remove the hashing operation from the
script.

This effectively renders the "updatekey" option redundant but we keep it around
for backwards compatibility. Both "option password" and "option updatekey" will
have end up in the "&password=" parameter of the update url and are passed through
unmodified.

Signed-off-by: Jo-Philipp Wich <jow@…>

Location:
trunk/package/network/ipv6/6in4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/network/ipv6/6in4/Makefile

    r40876 r41358  
    99 
    1010PKG_NAME:=6in4 
    11 PKG_VERSION:=16 
     11PKG_VERSION:=17 
    1212PKG_RELEASE:=1 
    1313 
  • trunk/package/network/ipv6/6in4/files/6in4.sh

    r40876 r41358  
    11#!/bin/sh 
    22# 6in4.sh - IPv6-in-IPv4 tunnel backend 
    3 # Copyright (c) 2010-2012 OpenWrt.org 
     3# Copyright (c) 2010-2014 OpenWrt.org 
    44 
    55[ -n "$INCLUDE_ONLY" ] || { 
     
    6464 
    6565        [ -n "$tunnelid" -a -n "$username" -a \( -n "$password" -o -n "$updatekey" \) ] && { 
    66                 [ "${#password}" == 32 -a -z "${password//[a-fA-F0-9]/}" ] || { 
    67                         password="$(echo -n "$password" | md5sum)"; password="${password%% *}" 
    68                 } 
    69  
    7066                [ -n "$updatekey" ] && password="$updatekey" 
    7167 
Note: See TracChangeset for help on using the changeset viewer.