~ubuntu-branches/debian/sid/alpine/sid

« back to all changes in this revision

Viewing changes to imap/src/osdep/unix/ssl_none.c

  • Committer: Package Import Robot
  • Author(s): Unit 193
  • Date: 2015-05-01 19:52:36 UTC
  • mfrom: (1.1.12)
  • Revision ID: package-import@ubuntu.com-20150501195236-e2xjytpbb7ik352w
Tags: 2.20+dfsg1-1
* Imported Upstream version 2.20+dfsg1
  - Drop patches applied upstream.
  - Refresh remaining patches.
  - d/rules: Update SHA256 for alpine 2.20.
* Update Standards-Version to 3.9.6.
* d/watch: Narrow the regex to only match source tarballs.
* d/alpine-doc.docs: tech-notes.txt moved to under the tech-notes/ dir.
* d/control: Update Vcs-Browser for cgit.
* d/p/10_alpine_1.10_spooldir.patch: Fix a few more references.
* d/p/40_fix_browser_hardcoded_paths.patch:
  - Fix hardcoded paths to specific browsers.
* d/p/40_fix_tech_notes_hardcoded_paths.patch, d/rules:
  - Drop patch in favor of changing paths after the build.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* ========================================================================
 
2
 * Copyright 2008 Mark Crispin
 
3
 * ========================================================================
 
4
 */
 
5
 
 
6
/*
 
7
 * Program:     Dummy (no SSL) authentication/encryption module
 
8
 *
 
9
 * Author:      Mark Crispin
 
10
 *
 
11
 * Date:        7 February 2001
 
12
 * Last Edited: 19 November 2008
 
13
 *
 
14
 * Previous versions of this file were
 
15
 *
2
16
 * Copyright 1988-2006 University of Washington
3
17
 *
4
18
 * Licensed under the Apache License, Version 2.0 (the "License");
7
21
 *
8
22
 *     http://www.apache.org/licenses/LICENSE-2.0
9
23
 *
10
 
 * 
11
 
 * ========================================================================
12
 
 */
13
 
 
14
 
/*
15
 
 * Program:     Dummy (no SSL) authentication/encryption module
16
 
 *
17
 
 * Author:      Mark Crispin
18
 
 *              Networks and Distributed Computing
19
 
 *              Computing & Communications
20
 
 *              University of Washington
21
 
 *              Administration Building, AG-44
22
 
 *              Seattle, WA  98195
23
 
 *              Internet: MRC@CAC.Washington.EDU
24
 
 *
25
 
 * Date:        7 February 2001
26
 
 * Last Edited: 30 August 2006
27
24
 */
28
25
 
29
26
/* Init server for SSL
53
50
 
54
51
int PBIN (void)
55
52
{
56
 
  return getchar ();
 
53
  int ret;
 
54
  do {
 
55
    clearerr (stdin);
 
56
    ret = getchar ();
 
57
  } while ((ret == EOF) && !feof (stdin) && ferror (stdin) &&(errno == EINTR));
 
58
  return ret;
57
59
}
58
60
 
59
61
 
65
67
 
66
68
char *PSIN (char *s,int n)
67
69
{
68
 
  return fgets (s,n,stdin);
 
70
  char *ret;
 
71
  do {
 
72
    clearerr (stdin);
 
73
    ret = fgets (s,n,stdin);
 
74
  } while (!ret && !feof (stdin) && ferror (stdin) && (errno == EINTR));
 
75
  return ret;
69
76
}
70
77
 
71
78