Check-in [3242c8d4d5]
Overview
Comment:Updated to trim trailing newlines
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:3242c8d4d56bd7b01028caacffec862a7add0951
User & Date: rkeene on 2014-11-17 20:50:46
Other Links: manifest | tags
Context
2014-11-17
21:03
Updated to only prompt for passwords for encrypted files, and store certificate if a CSR was automatically generated check-in: 111b99f620 user: rkeene tags: trunk
20:50
Updated to trim trailing newlines check-in: 3242c8d4d5 user: rkeene tags: trunk
20:37
Added working certificate support check-in: 3244026fd6 user: rkeene tags: trunk
Changes

Modified appfsd.tcl from [af3233ef21] to [15db9f608a].

   277    277   		if {![info exists indexhash_data]} {
   278    278   			# Cache this result for 60 seconds
   279    279   			db eval {INSERT OR REPLACE INTO sites (hostname, lastUpdate, ttl) VALUES ($hostname, $now, $::appfs::nttl);}
   280    280   
   281    281   			return -code error "Unable to fetch $url"
   282    282   		}
   283    283   
          284  +		set indexhash_data [string trim $indexhash_data "\r\n"]
   284    285   		set indexhash_data [split $indexhash_data ","]
   285         -		set indexhash [lindex $indexhash_data 0]
          286  +		set indexhash       [lindex $indexhash_data 0]
   286    287   		set indexhashmethod [lindex $indexhash_data 1]
   287    288   		set indexhashcert   [lindex $indexhash_data 2]
   288    289   		set indexhashsig    [lindex $indexhash_data 3]
   289    290   
   290    291   		if {![_isHash $indexhash]} {
   291    292   			return -code error "Invalid hash: $indexhash"
   292    293   		}